Mercurial > p > mysql-python > mysqldb-2
comparison MySQLdb/converters.py @ 14:7773efbe9b30 MySQLdb
Formatting and PyLint fixes. Final score: 8.21/10
author | adustman |
---|---|
date | Mon, 26 Feb 2007 18:08:28 +0000 |
parents | d68fe80ce1c3 |
children | a275593a1630 |
comparison
equal
deleted
inserted
replaced
13:eb90cceaee92 | 14:7773efbe9b30 |
---|---|
40 mysql_timestamp_converter | 40 mysql_timestamp_converter |
41 from types import InstanceType | 41 from types import InstanceType |
42 import array | 42 import array |
43 import datetime | 43 import datetime |
44 | 44 |
45 __revision__ = "$ Revision: $"[11:-2] | 45 __revision__ = "$Revision$"[11:-2] |
46 __author__ = "$Author$"[9:-2] | |
46 | 47 |
47 def bool_to_sql(boolean, conv): | 48 def bool_to_sql(boolean, conv): |
48 """Convert a Python bool to an SQL literal.""" | 49 """Convert a Python bool to an SQL literal.""" |
49 return str(int(boolean)) | 50 return str(int(boolean)) |
50 | 51 |