mirror of
https://github.com/python/cpython.git
synced 2025-09-10 18:58:35 +00:00
Whitespace normalization, via reindent.py.
This commit is contained in:
parent
e6ddc8b20b
commit
182b5aca27
453 changed files with 31318 additions and 31452 deletions
|
@ -10,16 +10,16 @@
|
|||
# If it occurs more than once, remove the first occurrence.
|
||||
#
|
||||
def remove(item, list):
|
||||
if item in list: list.remove(item)
|
||||
if item in list: list.remove(item)
|
||||
|
||||
|
||||
# Return a string containing a file's contents.
|
||||
#
|
||||
def readfile(fn):
|
||||
return readopenfile(open(fn, 'r'))
|
||||
return readopenfile(open(fn, 'r'))
|
||||
|
||||
|
||||
# Read an open file until EOF.
|
||||
#
|
||||
def readopenfile(fp):
|
||||
return fp.read()
|
||||
return fp.read()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue