mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2026-03-13 08:00:02 +08:00
Fix bug 605849 (I hope).
This commit is contained in:
@@ -88,7 +88,9 @@ def Instance2Str(o, d):
|
||||
if not cl and hasattr(types, 'ObjectType'):
|
||||
cl = filter(lambda x,o=o:
|
||||
type(x) is types.TypeType
|
||||
and isinstance(o, x), d.keys())
|
||||
and isinstance(o, x)
|
||||
and d[x] is not Instance2Str,
|
||||
d.keys())
|
||||
if not cl:
|
||||
return d[types.StringType](o,d)
|
||||
d[o.__class__] = d[cl[0]]
|
||||
|
||||
Reference in New Issue
Block a user