summaryrefslogtreecommitdiffstats
path: root/share/extensions
diff options
context:
space:
mode:
authorPeter Moulder <peter.moulder@monash.edu>2009-02-27 02:15:41 +0000
committerpjrm <pjrm@users.sourceforge.net>2009-02-27 02:15:41 +0000
commit6956cef10da64c6d583204006d20ba5f4e31aef4 (patch)
tree415955b5242babbd3c0139bbc7c6f516aaddab4c /share/extensions
parentUpdated, but still a lot of work to do (diff)
downloadinkscape-6956cef10da64c6d583204006d20ba5f4e31aef4.tar.gz
inkscape-6956cef10da64c6d583204006d20ba5f4e31aef4.zip
share/extensions/inkex.py: Fix a couple of issues reported by pychecker.
(bzr r7385)
Diffstat (limited to 'share/extensions')
-rwxr-xr-xshare/extensions/inkex.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/extensions/inkex.py b/share/extensions/inkex.py
index 98ebf9d1f..adc0d0fed 100755
--- a/share/extensions/inkex.py
+++ b/share/extensions/inkex.py
@@ -90,7 +90,7 @@ def check_inkbool(option, opt, value):
elif str(value).capitalize() == 'False':
return False
else:
- raise OptionValueError("option %s: invalid inkbool value: %s" % (opt, value))
+ raise optparse.OptionValueError("option %s: invalid inkbool value: %s" % (opt, value))
def addNS(tag, ns=None):
val = tag
@@ -161,10 +161,10 @@ class Effect:
def getselected(self):
"""Collect selected nodes"""
- for id in self.options.ids:
- path = '//*[@id="%s"]' % id
+ for i in self.options.ids:
+ path = '//*[@id="%s"]' % i
for node in self.document.xpath(path, namespaces=NSS):
- self.selected[id] = node
+ self.selected[i] = node
def getdocids(self):
docIdNodes = self.document.xpath('//@id', namespaces=NSS)