summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorRaphaël Bournhonesque <raphael0202@yahoo.fr>2016-03-25 18:14:41 +0000
committerRaphaël Bournhonesque <raphael0202@yahoo.fr>2016-03-25 18:14:41 +0000
commit17495e1131c0e2159b1e42adbf8e0a505ce6de8d (patch)
tree2e6bc399a00c3b0c1317918f2526c68b6f5e7a1d /share
parentRevert revision #14156 because problems with offsets, see coments added (diff)
downloadinkscape-17495e1131c0e2159b1e42adbf8e0a505ce6de8d.tar.gz
inkscape-17495e1131c0e2159b1e42adbf8e0a505ce6de8d.zip
Remove deprecated has_key method in inkex.py
(bzr r14742)
Diffstat (limited to 'share')
-rwxr-xr-xshare/extensions/inkex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/extensions/inkex.py b/share/extensions/inkex.py
index 99f8c6a77..0aee3c21a 100755
--- a/share/extensions/inkex.py
+++ b/share/extensions/inkex.py
@@ -132,7 +132,7 @@ def check_inkbool(option, opt, value):
def addNS(tag, ns=None):
val = tag
- if ns is not None and len(ns) > 0 and NSS.has_key(ns) and len(tag) > 0 and tag[0] != '{':
+ if ns is not None and len(ns) > 0 and ns in NSS and len(tag) > 0 and tag[0] != '{':
val = "{%s}%s" % (NSS[ns], tag)
return val