summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-07-17 12:05:59 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-07-17 12:05:59 -0400
commitc214e436c2e9e1fde4ab5ebcf31dcc62ad1689cc (patch)
treeef1db64f7c1d4ea54bde9d412c432df02cff9969 /lib
parent5b2df4215f0631c51d30b3b77082622ef0f5a733 (diff)
downloadsqlalchemy-c214e436c2e9e1fde4ab5ebcf31dcc62ad1689cc.tar.gz
adjust the compat namedtuple to handle subclassing
Diffstat (limited to 'lib')
-rw-r--r--lib/sqlalchemy/util/compat.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/util/compat.py b/lib/sqlalchemy/util/compat.py
index 215a68e91..9f8a3069d 100644
--- a/lib/sqlalchemy/util/compat.py
+++ b/lib/sqlalchemy/util/compat.py
@@ -55,7 +55,7 @@ else:
# a controversial feature, required by MySQLdb currently
def buffer(x):
- return x
+ return x
# Py2K
buffer = buffer
@@ -121,7 +121,7 @@ try:
except ImportError:
def namedtuple(typename, fieldnames):
def __new__(cls, *values):
- tup = tuple.__new__(tuptype, values)
+ tup = tuple.__new__(cls, values)
for i, fname in enumerate(fieldnames):
setattr(tup, fname, tup[i])
return tup
@@ -231,7 +231,7 @@ import time
if win32 or jython:
time_func = time.clock
else:
- time_func = time.time
+ time_func = time.time
if sys.version_info >= (2, 5):
any = any