summaryrefslogtreecommitdiffstats
path: root/src/util/xmlpool/gen_xmlpool.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/xmlpool/gen_xmlpool.py')
-rw-r--r--src/util/xmlpool/gen_xmlpool.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/xmlpool/gen_xmlpool.py b/src/util/xmlpool/gen_xmlpool.py
index 8336e0f9523..886c1854f3a 100644
--- a/src/util/xmlpool/gen_xmlpool.py
+++ b/src/util/xmlpool/gen_xmlpool.py
@@ -42,7 +42,7 @@ def escapeCString (s):
# open quote
q = u'\u201d'
r = r + q
- elif escapeSeqs.has_key(s[i]):
+ elif s[i] in escapeSeqs:
r = r + escapeSeqs[s[i]]
else:
r = r + s[i]
@@ -90,7 +90,7 @@ def expandCString (s):
escape = False
r = r + chr(num)
else:
- if escapeSeqs.has_key(s[i]):
+ if s[i] in escapeSeqs:
r = r + escapeSeqs[s[i]]
escape = False
elif s[i] >= '0' and s[i] <= '7':