mirror of
https://github.com/python/cpython.git
synced 2025-10-13 10:23:28 +00:00
Rip out 'long' and 'L'-suffixed integer literals.
(Rough first cut.)
This commit is contained in:
parent
fc7bb8c786
commit
e2a383d062
146 changed files with 1446 additions and 1477 deletions
|
@ -2,7 +2,7 @@ import sys, itertools
|
|||
import _ast
|
||||
|
||||
def to_tuple(t):
|
||||
if t is None or isinstance(t, (basestring, int, long, complex)):
|
||||
if t is None or isinstance(t, (basestring, int, int, complex)):
|
||||
return t
|
||||
elif isinstance(t, list):
|
||||
return [to_tuple(e) for e in t]
|
||||
|
@ -93,7 +93,7 @@ eval_tests = [
|
|||
# Call
|
||||
"f(1,2,c=3,*d,**e)",
|
||||
# Num
|
||||
"10L",
|
||||
"10",
|
||||
# Str
|
||||
"'string'",
|
||||
# Attribute
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue