diff --git a/src/interfaces/python/pg.py b/src/interfaces/python/pg.py index 6f458af5aa..189ac11220 100644 --- 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"""