mirror of
https://github.com/python/cpython.git
synced 2025-08-29 13:15:11 +00:00
New == syntax
This commit is contained in:
parent
4d8e859e8f
commit
bdfcfccbe5
73 changed files with 419 additions and 391 deletions
|
@ -170,18 +170,18 @@ def main():
|
|||
return 1
|
||||
optu = optc = optd = 0
|
||||
for opt, void in optlist:
|
||||
if opt = '-u':
|
||||
if opt == '-u':
|
||||
optu = 1
|
||||
elif opt = '-c':
|
||||
elif opt == '-c':
|
||||
optc = 1
|
||||
elif opt = '-d':
|
||||
elif opt == '-d':
|
||||
optd = 1
|
||||
if optu = optc = optd = 0:
|
||||
if optu == optc == optd == 0:
|
||||
optu = optc = optd = 1
|
||||
if not args:
|
||||
args = ['-']
|
||||
for file in args:
|
||||
if file = '-':
|
||||
if file == '-':
|
||||
readinput(sys.stdin)
|
||||
else:
|
||||
readinput(open(file, 'r'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue