diff options
author | D'Arcy J.M. Cain | 2001-11-04 19:42:13 +0000 |
---|---|---|
committer | D'Arcy J.M. Cain | 2001-11-04 19:42:13 +0000 |
commit | 23eaf197bdf3ad71ef95ba98dce6f296d3683a51 (patch) | |
tree | 5f21e14cc53ad9f99dde28de469c2c6601499de0 | |
parent | f378b6a41b6cdde9ef3391b544c5cb87098eaa5e (diff) |
The "%d", while syntactically correct, was confusing. Added a space to
make it clearer that d was the argument to the format operator.
-rw-r--r-- | src/interfaces/python/pg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/python/pg.py b/src/interfaces/python/pg.py index 6f458af5aa..189ac11220 100644 --- a/src/interfaces/python/pg.py +++ b/src/interfaces/python/pg.py @@ -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""" |