summaryrefslogtreecommitdiffstats
path: root/share/extensions
diff options
context:
space:
mode:
authorRaphaël Bournhonesque <raphael0202@yahoo.fr>2016-03-22 07:43:05 +0000
committerRaphaël Bournhonesque <raphael0202@yahoo.fr>2016-03-22 07:43:05 +0000
commit80b839da8794031d95bb2ce6fe0b39329496833d (patch)
tree086f2ba0205f2c1b5759ed8835fdbd1ca6e5a9f8 /share/extensions
parentCorrect typo (diff)
downloadinkscape-80b839da8794031d95bb2ce6fe0b39329496833d.tar.gz
inkscape-80b839da8794031d95bb2ce6fe0b39329496833d.zip
inkex.py code simplification (more compact if conditions, unreachable code)
(bzr r14734)
Diffstat (limited to 'share/extensions')
-rwxr-xr-xshare/extensions/inkex.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/share/extensions/inkex.py b/share/extensions/inkex.py
index e1602f918..99f8c6a77 100755
--- a/share/extensions/inkex.py
+++ b/share/extensions/inkex.py
@@ -106,10 +106,7 @@ def errormsg(msg):
def are_near_relative(a, b, eps):
- if (a-b <= a*eps) and (a-b >= -a*eps):
- return True
- else:
- return False
+ return (a-b <= a*eps) and (a-b >= -a*eps)
# third party library
@@ -246,7 +243,6 @@ class Effect:
for parent in self.document.getiterator():
if node in parent.getchildren():
return parent
- break
def getdocids(self):
docIdNodes = self.document.xpath('//@id', namespaces=NSS)