summaryrefslogtreecommitdiff
path: root/python/skytools/quoting.py
diff options
context:
space:
mode:
authorMarko Kreen2007-12-19 09:25:04 +0000
committerMarko Kreen2007-12-19 09:25:04 +0000
commit4120d4b6d4dd414e760f719bbd28483cb9cb7f2e (patch)
tree39adeb45c00a9a267df566159155a0a6c66afabc /python/skytools/quoting.py
parentc57ccbfb80d1e12d6af94ae51ac9e85699cfcdfd (diff)
intern db_urldecode keys
Diffstat (limited to 'python/skytools/quoting.py')
-rw-r--r--python/skytools/quoting.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/skytools/quoting.py b/python/skytools/quoting.py
index 84906c94..594646a4 100644
--- a/python/skytools/quoting.py
+++ b/python/skytools/quoting.py
@@ -158,6 +158,10 @@ def db_urldecode(qs):
continue
pair = elem.split('=', 1)
name = urllib.unquote_plus(pair[0])
+
+ # keep only one instance around
+ name = intern(name)
+
if len(pair) == 1:
res[name] = None
else: