diff -r 8c98bad90b8d -r fcc406143e5b editors/Viewer.py --- 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,