diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-12-05 12:51:24 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-12-05 12:51:24 -0500 |
commit | 1f9029597caf3d9d9e64e5a326508babfca60ebb (patch) | |
tree | d61b888173b7a0a6b6d4f061a3afad734812e1da /lib/sqlalchemy/util/langhelpers.py | |
parent | 49145a6940062486a6eec66bfe5c9d95c5f76c7a (diff) | |
download | sqlalchemy-1f9029597caf3d9d9e64e5a326508babfca60ebb.tar.gz |
- move topological, queue into util
- move function_named into test.lib.util
- use @decorator for all decorators in test/
Diffstat (limited to 'lib/sqlalchemy/util/langhelpers.py')
-rw-r--r-- | lib/sqlalchemy/util/langhelpers.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/sqlalchemy/util/langhelpers.py b/lib/sqlalchemy/util/langhelpers.py index 68d9709f8..aac22ba30 100644 --- a/lib/sqlalchemy/util/langhelpers.py +++ b/lib/sqlalchemy/util/langhelpers.py @@ -371,20 +371,6 @@ def as_interface(obj, cls=None, methods=None, required=None): raise TypeError("dictionary does not contain required keys %s" % ', '.join(required - found)) -def function_named(fn, name): - """Return a function with a given __name__. - - Will assign to __name__ and return the original function if possible on - the Python implementation, otherwise a new function will be constructed. - - """ - try: - fn.__name__ = name - except TypeError: - fn = types.FunctionType(fn.func_code, fn.func_globals, name, - fn.func_defaults, fn.func_closure) - return fn - class memoized_property(object): """A read-only @property that is only evaluated once.""" |