From: Jeremy Hylton Date: Tue, 8 Feb 2000 19:58:33 +0000 (+0000) Subject: add spaces to comparison names is not and not in to match dis X-Git-Tag: v1.6a1~481 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1851901a05201a2c34b35adb23fcb9da8a5fdb9f;p=thirdparty%2FPython%2Fcpython.git add spaces to comparison names is not and not in to match dis --- diff --git a/Lib/compiler/transformer.py b/Lib/compiler/transformer.py index 42d34dcbdc60..b85b498ec802 100644 --- a/Lib/compiler/transformer.py +++ b/Lib/compiler/transformer.py @@ -555,9 +555,9 @@ class Transformer: type = n[1] if len(nl) == 3: if type == 'not': - type = 'notin' + type = 'not in' else: - type = 'isnot' + type = 'is not' else: type = _cmp_types[n[0]] diff --git a/Tools/compiler/compiler/transformer.py b/Tools/compiler/compiler/transformer.py index 42d34dcbdc60..b85b498ec802 100644 --- a/Tools/compiler/compiler/transformer.py +++ b/Tools/compiler/compiler/transformer.py @@ -555,9 +555,9 @@ class Transformer: type = n[1] if len(nl) == 3: if type == 'not': - type = 'notin' + type = 'not in' else: - type = 'isnot' + type = 'is not' else: type = _cmp_types[n[0]]