mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03: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:
@ -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"""
|
||||||
|
Reference in New Issue
Block a user