summaryrefslogtreecommitdiff
path: root/Demo/scripts/from.py
diff options
context:
space:
mode:
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