diff options
author | Hong Minhee <minhee@dahlia.kr> | 2013-04-13 04:39:55 +0900 |
---|---|---|
committer | Hong Minhee <minhee@dahlia.kr> | 2013-04-13 04:39:55 +0900 |
commit | cc6c35360e9846aa2934e0885f53e48be071ff37 (patch) | |
tree | 07f423dc487d6f6cf1d4057d5cad28e0736fe7b5 /alembic/util.py | |
parent | 37e6c62be85bdca0429571dd7f9d4ede54b085ee (diff) | |
download | alembic-cc6c35360e9846aa2934e0885f53e48be071ff37.tar.gz |
im_func -> __func__, func_defaults -> __defaults__
Diffstat (limited to 'alembic/util.py')
-rw-r--r-- | alembic/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alembic/util.py b/alembic/util.py index c7c3784..e16707d 100644 --- a/alembic/util.py +++ b/alembic/util.py @@ -288,7 +288,7 @@ def _with_legacy_names(translations): code = 'lambda %(args)s: %(target)s(%(apply_kw)s)' % ( metadata) decorated = eval(code, {"target": go}) - decorated.func_defaults = getattr(fn, 'im_func', fn).func_defaults + decorated.__defaults__ = getattr(fn, '__func__', fn).__defaults__ return update_wrapper(decorated, fn) return decorate |