diff options
author | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
commit | bdfcfccbe591e15221f35add01132174c9b4e669 (patch) | |
tree | 7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb /Demo/scripts/from.py | |
parent | 4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff) | |
download | cpython-bdfcfccbe591e15221f35add01132174c9b4e669.zip cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.bz2 |
New == syntax
Diffstat (limited to 'Demo/scripts/from.py')
-rwxr-xr-x | Demo/scripts/from.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Demo/scripts/from.py b/Demo/scripts/from.py index 21ca081..8e663f1 100755 --- a/Demo/scripts/from.py +++ b/Demo/scripts/from.py @@ -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 |