mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2024-10-07 02:03:56 +00:00
Small int thing and sync with decompyle3
This commit is contained in:
parent
71c17c4e53
commit
33bff4dc47
2
tox.ini
2
tox.ini
@ -3,7 +3,7 @@
|
|||||||
[flake8]
|
[flake8]
|
||||||
exclude = .tox,./build,./trepan/processor/command/tmp
|
exclude = .tox,./build,./trepan/processor/command/tmp
|
||||||
filename = *.py
|
filename = *.py
|
||||||
ignore = C901,E113,E121,E122,E123,E124,E125,E126,E127,E128,E129,E201,E202,E203,E221,E222,E225,E226,E241,E242,E251,E261,E271,E272,E302,E401,E402,E501,F401,E701,E702
|
ignore = C901,E113,E121,E122,E123,E124,E125,E126,E127,E128,E129,E201,E202,E203,E221,E222,E225,E226,E241,E242,E251,E261,E271,E272,E302,E401,E402,E501,F401,E701,E702,W503
|
||||||
|
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py27, py34, pypy
|
envlist = py27, py34, pypy
|
||||||
|
@ -74,8 +74,8 @@ if PYTHON3:
|
|||||||
intern = sys.intern
|
intern = sys.intern
|
||||||
L65536 = 65536
|
L65536 = 65536
|
||||||
|
|
||||||
def long(l):
|
def long(num):
|
||||||
return l
|
return num
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
@ -41,7 +41,6 @@ def better_repr(v, version):
|
|||||||
else:
|
else:
|
||||||
return s
|
return s
|
||||||
elif isinstance(v, list):
|
elif isinstance(v, list):
|
||||||
better_repr(v)
|
|
||||||
if len(v) == 1:
|
if len(v) == 1:
|
||||||
return "[%s,]" % better_repr(v[0], version)
|
return "[%s,]" % better_repr(v[0], version)
|
||||||
return "[%s]" % ", ".join(better_repr(i) for i in v)
|
return "[%s]" % ", ".join(better_repr(i) for i in v)
|
||||||
|
Loading…
Reference in New Issue
Block a user