mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +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
|
@ -114,9 +114,9 @@ def compile(file, cfile=None, dfile=None, doraise=False):
|
|||
"""
|
||||
f = open(file, 'U')
|
||||
try:
|
||||
timestamp = long(os.fstat(f.fileno()).st_mtime)
|
||||
timestamp = int(os.fstat(f.fileno()).st_mtime)
|
||||
except AttributeError:
|
||||
timestamp = long(os.stat(file).st_mtime)
|
||||
timestamp = int(os.stat(file).st_mtime)
|
||||
codestring = f.read()
|
||||
f.close()
|
||||
if codestring and codestring[-1] != '\n':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue