X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fextensions.py;h=9befa7bf6c427984968b9ad42c336c1d9ef9ffee;hb=06b17e68fd4a76e7a12f741f26654e55bff05c79;hp=d5da89d83eb9c3d755d6ec9935b67c8ef284339c;hpb=30662a0d8af5ab5873ff7bdd7d59de52c1ce7fb5;p=dak.git diff --git a/daklib/extensions.py b/daklib/extensions.py index d5da89d8..9befa7bf 100644 --- a/daklib/extensions.py +++ b/daklib/extensions.py @@ -37,10 +37,10 @@ def replace_dak_function(module,name): myfunc.__doc__ = f.__doc__ myfunc.__dict__.update(f.__dict__) - fnname = "%s:%s" % (module, name) - if fnname in dak_functions_to_replace: - raise Exception, \ - "%s in %s already marked to be replaced" % (name, module) + fnname = "%s:%s" % (module, name) + if fnname in dak_functions_to_replace: + raise Exception, \ + "%s in %s already marked to be replaced" % (name, module) dak_functions_to_replace["%s:%s" % (module,name)] = myfunc return f return x @@ -57,5 +57,3 @@ def init(name, module, userext): if len(f) > 0 and m == name: dak_replaced_functions[f] = module.__dict__[f] module.__dict__[f] = newfunc - -