mirror of
https://github.com/python/cpython.git
synced 2024-11-26 19:34:19 +08:00
add spaces to comparison names is not and not in to match dis
This commit is contained in:
parent
53187f32eb
commit
1851901a05
@ -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]]
|
||||
|
||||
|
@ -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]]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user