]> granicus.if.org Git - python/commitdiff
add spaces to comparison names is not and not in to match dis
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 8 Feb 2000 19:58:33 +0000 (19:58 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 8 Feb 2000 19:58:33 +0000 (19:58 +0000)
Lib/compiler/transformer.py
Tools/compiler/compiler/transformer.py

index 42d34dcbdc608998b21c0bc019b85f59dfe2690b..b85b498ec8021bafc2649d2cb76304657fa173fd 100644 (file)
@@ -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]]
 
index 42d34dcbdc608998b21c0bc019b85f59dfe2690b..b85b498ec8021bafc2649d2cb76304657fa173fd 100644 (file)
@@ -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]]