mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +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
|
@ -80,18 +80,18 @@ def checkcache(filename):
|
|||
fp.close()
|
||||
|
||||
def _unpack_cache(altforms):
|
||||
forms = {}
|
||||
for name in altforms.keys():
|
||||
altobj, altlist = altforms[name]
|
||||
obj = _newobj()
|
||||
obj.make(altobj)
|
||||
list = []
|
||||
for altobj in altlist:
|
||||
nobj = _newobj()
|
||||
nobj.make(altobj)
|
||||
list.append(nobj)
|
||||
forms[name] = obj, list
|
||||
return forms
|
||||
forms = {}
|
||||
for name in altforms.keys():
|
||||
altobj, altlist = altforms[name]
|
||||
obj = _newobj()
|
||||
obj.make(altobj)
|
||||
list = []
|
||||
for altobj in altlist:
|
||||
nobj = _newobj()
|
||||
nobj.make(altobj)
|
||||
list.append(nobj)
|
||||
forms[name] = obj, list
|
||||
return forms
|
||||
|
||||
def rdlong(fp):
|
||||
s = fp.read(4)
|
||||
|
@ -277,8 +277,8 @@ def _parse_line(line):
|
|||
return line
|
||||
name, value = match.group(1, 2)
|
||||
if name[0] == 'N':
|
||||
name = string.join(string.split(name),'')
|
||||
name = string.lower(name)
|
||||
name = string.join(string.split(name),'')
|
||||
name = string.lower(name)
|
||||
name = string.capitalize(name)
|
||||
try:
|
||||
pf = _parse_func[name]
|
||||
|
@ -292,7 +292,7 @@ def _readline(file):
|
|||
if not line:
|
||||
raise EOFError
|
||||
return line[:-1]
|
||||
|
||||
|
||||
def _parse_1_line(file):
|
||||
line = _readline(file)
|
||||
while line == '':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue