summaryrefslogtreecommitdiff
path: root/Demo/scripts/from.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-01-01 19:35:13 +0000
committerGuido van Rossum <guido@python.org>1992-01-01 19:35:13 +0000
commitbdfcfccbe591e15221f35add01132174c9b4e669 (patch)
tree7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb /Demo/scripts/from.py
parent4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff)
downloadcpython-git-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz
New == syntax
Diffstat (limited to 'Demo/scripts/from.py')
-rwxr-xr-xDemo/scripts/from.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Demo/scripts/from.py b/Demo/scripts/from.py
index 21ca081669..8e663f16e1 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