Mercurial > p > mysql-python > mysqldb-2
comparison MySQLdb/converters.py @ 81:228a45771d14 MySQLdb
Remove $Revision$ and $Author$ refs as hg doesn't use them.
author | Andy Dustman <adustman@users.sourceforge.net> |
---|---|
date | Mon, 22 Feb 2010 22:58:16 -0500 |
parents | 3b03cb566032 |
children | ffe9e5ca17e0 |
comparison
equal
deleted
inserted
replaced
76:17062a65fde9 | 81:228a45771d14 |
---|---|
14 from types import InstanceType | 14 from types import InstanceType |
15 import array | 15 import array |
16 import datetime | 16 import datetime |
17 from decimal import Decimal | 17 from decimal import Decimal |
18 from itertools import izip | 18 from itertools import izip |
19 | |
20 __revision__ = "$Revision$"[11:-2] | |
21 __author__ = "$Author$"[9:-2] | |
22 | 19 |
23 def bool_to_sql(connection, boolean): | 20 def bool_to_sql(connection, boolean): |
24 """Convert a Python bool to an SQL literal.""" | 21 """Convert a Python bool to an SQL literal.""" |
25 return str(int(boolean)) | 22 return str(int(boolean)) |
26 | 23 |