mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
This patch changes a few of the scripts to have __name__=='__main__' clauses so that they are importable without running. Also fixes the syntax errors revealed by the tests.
This commit is contained in:
parent
b6046301ef
commit
54ac832a24
7 changed files with 128 additions and 82 deletions
|
@ -292,7 +292,7 @@ def addsubst(substfile):
|
|||
if not words: continue
|
||||
if len(words) == 3 and words[0] == 'struct':
|
||||
words[:2] = [words[0] + ' ' + words[1]]
|
||||
elif len(words) <> 2:
|
||||
elif len(words) != 2:
|
||||
err(substfile + '%s:%r: warning: bad line: %r' % (substfile, lineno, line))
|
||||
continue
|
||||
if Reverse:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue