projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ef62bb
)
The "%d", while syntactically correct, was confusing. Added a space to
author
D'Arcy J.M. Cain
Sun, 4 Nov 2001 19:42:13 +0000
(19:42 +0000)
committer
D'Arcy J.M. Cain
Sun, 4 Nov 2001 19:42:13 +0000
(19:42 +0000)
make it clearer that d was the argument to the format operator.
src/interfaces/python/pg.py
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/python/pg.py
b/src/interfaces/python/pg.py
index 6f458af5aa873f2b64a8a92974c81b562b17388c..189ac112202a5ba120505d8754a82359002b181b 100644
(file)
--- 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"""