From 6395d86a9a07fbf3e9d842dfec2c0e1bb1403ca5 Mon Sep 17 00:00:00 2001
From: "D'Arcy J.M. Cain" <darcy@druid.net>
Date: Sun, 4 Nov 2001 19:42:13 +0000
Subject: [PATCH] The "%d", while syntactically correct, was confusing.  Added
 a space to make it clearer that d was the argument to the format operator.

---
 src/interfaces/python/pg.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/interfaces/python/pg.py b/src/interfaces/python/pg.py
index 6f458af5aa8..189ac112202 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"""
-- 
GitLab