diff --git a/Lib/compiler/transformer.py b/Lib/compiler/transformer.py index 42d34dcbdc6..b85b498ec80 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 42d34dcbdc6..b85b498ec80 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]]