diff options
author | D'Arcy J.M. Cain <darcy@druid.net> | 2001-11-04 19:42:13 +0000 |
---|---|---|
committer | D'Arcy J.M. Cain <darcy@druid.net> | 2001-11-04 19:42:13 +0000 |
commit | 6395d86a9a07fbf3e9d842dfec2c0e1bb1403ca5 (patch) | |
tree | 278ea4c323e2a496fc8b052234569a132a9425c2 /src/interfaces/python/pg.py | |
parent | 1ef62bb6fc0f2717319104ae86a9f815c38ade41 (diff) | |
download | postgresql-6395d86a9a07fbf3e9d842dfec2c0e1bb1403ca5.tar.gz postgresql-6395d86a9a07fbf3e9d842dfec2c0e1bb1403ca5.zip |
The "%d", while syntactically correct, was confusing. Added a space to
make it clearer that d was the argument to the format operator.
Diffstat (limited to 'src/interfaces/python/pg.py')
-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 6f458af5aa8..189ac112202 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""" |