Diff of /trunk/MySQLdb/MySQLdb/converters.py [r375] .. [r376]  Maximize  Restore

Switch to unified view

a/trunk/MySQLdb/MySQLdb/converters.py b/trunk/MySQLdb/MySQLdb/converters.py
...
...
145
try:
145
try:
146
    from decimal import Decimal
146
    from decimal import Decimal
147
    conversions[FIELD_TYPE.DECIMAL] = Decimal
147
    conversions[FIELD_TYPE.DECIMAL] = Decimal
148
except ImportError:
148
except ImportError:
149
    pass
149
    pass
150
151
try:
152
    from types import BooleanType
153
    def Bool2Str(s, d): return str(int(s))
154
    conversions[BooleanType] = Bool2Str
155
except ImportError:
156
    pass

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks