diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-01-23 19:16:36 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-01-23 19:16:36 -0500 |
commit | f02433d7aafe1eba9c4f90863d1d4de6673ab1db (patch) | |
tree | 36445f33d3126a19dbf93c293be2693561413ff6 /lib/sqlalchemy/util/compat.py | |
parent | 996d3916a33dfaa90bc59a1545c6c492fdf4aa1a (diff) | |
download | sqlalchemy-f02433d7aafe1eba9c4f90863d1d4de6673ab1db.tar.gz |
don't need to use __builtin__ for these things, doesn't work in py3k
Diffstat (limited to 'lib/sqlalchemy/util/compat.py')
-rw-r--r-- | lib/sqlalchemy/util/compat.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/sqlalchemy/util/compat.py b/lib/sqlalchemy/util/compat.py index 3a9209826..07652f3c6 100644 --- a/lib/sqlalchemy/util/compat.py +++ b/lib/sqlalchemy/util/compat.py @@ -8,9 +8,6 @@ import sys -# Py2K -import __builtin__ -# end Py2K try: import threading @@ -56,7 +53,7 @@ def buffer(x): return x # Py2K -buffer = getattr(__builtin__, 'buffer', buffer) +buffer = buffer # end Py2K try: @@ -104,9 +101,9 @@ if py3k_warning: from functools import reduce else: - callable = __builtin__.callable - cmp = __builtin__.cmp - reduce = __builtin__.reduce + callable = callable + cmp = cmp + reduce = reduce try: from collections import defaultdict @@ -193,7 +190,7 @@ else: time_func = time.time if sys.version_info >= (2, 5): - any = __builtin__.any + any = any else: def any(iterator): for item in iterator: |