Skip to content

Commit 49f8ab9

Browse files
committed
Fix some broken types module references.
1 parent 933e4d5 commit 49f8ab9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MySQLdb/converters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,14 @@ class to conversions; it will be handled by the default
112112
cl = filter(lambda x,o=o:
113113
type(x) is ClassType
114114
and isinstance(o, x), d.keys())
115-
if not cl and hasattr(types, 'ObjectType'):
115+
if not cl:
116116
cl = filter(lambda x,o=o:
117117
type(x) is TypeType
118118
and isinstance(o, x)
119119
and d[x] is not Instance2Str,
120120
d.keys())
121121
if not cl:
122-
return d[types.StringType](o,d)
122+
return d[StringType](o,d)
123123
d[o.__class__] = d[cl[0]]
124124
return d[cl[0]](o, d)
125125

0 commit comments

Comments
 (0)