]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
don't need to use __builtin__ for these things, doesn't work in py3k
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Jan 2012 00:16:36 +0000 (19:16 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Jan 2012 00:16:36 +0000 (19:16 -0500)
lib/sqlalchemy/util/compat.py

index 3a92098263ab6101387a25597482e887c344a84e..07652f3c6c70814e0d53ab14bcb072c7a5bb14a5 100644 (file)
@@ -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: