mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-03 05:26:50 +02: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"
|
||||
|
||||
return "'%s'" % string.strip(re.sub("'", "''", \
|
||||
re.sub("\\\\", "\\\\\\\\", "%s" %d)))
|
||||
re.sub("\\\\", "\\\\\\\\", "%s" % d)))
|
||||
|
||||
class DB:
|
||||
"""This class wraps the pg connection type"""
|
||||
|
Loading…
Reference in New Issue
Block a user