mirror of https://github.com/python/cpython
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]
|
type = n[1]
|
||||||
if len(nl) == 3:
|
if len(nl) == 3:
|
||||||
if type == 'not':
|
if type == 'not':
|
||||||
type = 'notin'
|
type = 'not in'
|
||||||
else:
|
else:
|
||||||
type = 'isnot'
|
type = 'is not'
|
||||||
else:
|
else:
|
||||||
type = _cmp_types[n[0]]
|
type = _cmp_types[n[0]]
|
||||||
|
|
||||||
|
|
|
@ -555,9 +555,9 @@ class Transformer:
|
||||||
type = n[1]
|
type = n[1]
|
||||||
if len(nl) == 3:
|
if len(nl) == 3:
|
||||||
if type == 'not':
|
if type == 'not':
|
||||||
type = 'notin'
|
type = 'not in'
|
||||||
else:
|
else:
|
||||||
type = 'isnot'
|
type = 'is not'
|
||||||
else:
|
else:
|
||||||
type = _cmp_types[n[0]]
|
type = _cmp_types[n[0]]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue