From 1851901a05201a2c34b35adb23fcb9da8a5fdb9f Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Tue, 8 Feb 2000 19:58:33 +0000 Subject: [PATCH] add spaces to comparison names is not and not in to match dis --- Lib/compiler/transformer.py | 4 ++-- Tools/compiler/compiler/transformer.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Lib/compiler/transformer.py b/Lib/compiler/transformer.py index 42d34dcbdc..b85b498ec8 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 42d34dcbdc..b85b498ec8 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]] -- 2.40.0