]> granicus.if.org Git - postgresql/commitdiff
The "%d", while syntactically correct, was confusing. Added a space to
authorD'Arcy J.M. Cain <darcy@druid.net>
Sun, 4 Nov 2001 19:42:13 +0000 (19:42 +0000)
committerD'Arcy J.M. Cain <darcy@druid.net>
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

index 6f458af5aa873f2b64a8a92974c81b562b17388c..189ac112202a5ba120505d8754a82359002b181b 100644 (file)
@@ -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"""