The "%d", while syntactically correct, was confusing. Added a space to

make it clearer that d was the argument to the format operator.
This commit is contained in:
D'Arcy J.M. Cain 2001-11-04 19:42:13 +00:00
parent 1ef62bb6fc
commit 6395d86a9a
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ def _quote(d, t):
if t in ('inet', 'cidr') and d == '': return "NULL"
return "'%s'" % string.strip(re.sub("'", "''", \
re.sub("\\\\", "\\\\\\\\", "%s" %d)))
re.sub("\\\\", "\\\\\\\\", "%s" % d)))
class DB:
"""This class wraps the pg connection type"""