comparison MySQLdb/converters.py @ 51:6122b2cacd20 MySQLdb

set and frozenset always available in Python 2.4 and newer
author adustman
date Sun, 22 Feb 2009 20:09:56 +0000
parents 0f9808c4799c
children 9ea2b0e9302e
comparison
equal deleted inserted replaced
50:0f9808c4799c 51:6122b2cacd20
41 mysql_timestamp_converter 41 mysql_timestamp_converter
42 from types import InstanceType 42 from types import InstanceType
43 import array 43 import array
44 import datetime 44 import datetime
45 from decimal import Decimal 45 from decimal import Decimal
46
47 try:
48 set
49 except NameError:
50 from sets import Set as set
51 46
52 __revision__ = "$Revision$"[11:-2] 47 __revision__ = "$Revision$"[11:-2]
53 __author__ = "$Author$"[9:-2] 48 __author__ = "$Author$"[9:-2]
54 49
55 def bool_to_sql(boolean, conv): 50 def bool_to_sql(boolean, conv):