editors/Viewer.py
changeset 1762 fcc406143e5b
parent 1759 56e7f4a11046
child 1763 bcc07ff2362c
--- a/editors/Viewer.py	Thu Aug 17 10:12:04 2017 +0300
+++ b/editors/Viewer.py	Thu Aug 17 11:39:10 2017 +0300
@@ -117,8 +117,13 @@
     return powerRailCreationFunction
 
 
-NEGATED_VALUE = lambda x: x if x is not None else False
-MODIFIER_VALUE = lambda x: x if x is not None else 'none'
+def NEGATED_VALUE(x):
+    return x if x is not None else False
+
+
+def MODIFIER_VALUE(x):
+    return x if x is not None else 'none'
+
 
 CONTACT_TYPES = {(True, "none"): CONTACT_REVERSE,
                  (False, "rising"): CONTACT_RISING,