mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
New == syntax
This commit is contained in:
parent
4d8e859e8f
commit
bdfcfccbe5
73 changed files with 419 additions and 391 deletions
|
@ -24,13 +24,13 @@ except RuntimeError:
|
|||
while 1:
|
||||
line = mail.readline()
|
||||
if not line: break # EOF
|
||||
if line[:5] = 'From ':
|
||||
if line[:5] == 'From ':
|
||||
# Start of message found
|
||||
print line[:-1],
|
||||
while 1:
|
||||
line = mail.readline()
|
||||
if not line: break # EOF
|
||||
if line = '\n': break # Blank line ends headers
|
||||
if line[:8] = 'Subject:':
|
||||
if line == '\n': break # Blank line ends headers
|
||||
if line[:8] == 'Subject:':
|
||||
print `line[9:-1]`,
|
||||
print
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue