mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-09 08:10:09 +08:00
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:
parent
1ef62bb6fc
commit
6395d86a9a
@ -38,7 +38,7 @@ def _quote(d, t):
|
|||||||
if t in ('inet', 'cidr') and d == '': return "NULL"
|
if t in ('inet', 'cidr') and d == '': return "NULL"
|
||||||
|
|
||||||
return "'%s'" % string.strip(re.sub("'", "''", \
|
return "'%s'" % string.strip(re.sub("'", "''", \
|
||||||
re.sub("\\\\", "\\\\\\\\", "%s" %d)))
|
re.sub("\\\\", "\\\\\\\\", "%s" % d)))
|
||||||
|
|
||||||
class DB:
|
class DB:
|
||||||
"""This class wraps the pg connection type"""
|
"""This class wraps the pg connection type"""
|
||||||
|
Loading…
Reference in New Issue
Block a user