From 80b839da8794031d95bb2ce6fe0b39329496833d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bournhonesque?= Date: Tue, 22 Mar 2016 08:43:05 +0100 Subject: inkex.py code simplification (more compact if conditions, unreachable code) (bzr r14734) --- share/extensions/inkex.py | 6 +----- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.3