Skip to content

Commit bdc40f7

Browse files
committed
fixes pep8 W291
1 parent d15ff44 commit bdc40f7

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Diff for: code3/re14.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Search for lines that contain 'Author:' followed by any characters,
1+
# Search for lines that contain 'Author:' followed by any characters,
22
# an at sign, and any non whitespace character
33
# Then print the character group that follows the at sign
44
import re

Diff for: code3/search2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
fhand = open('mbox-short.txt')
22
for line in fhand:
33
line = line.rstrip()
4-
if line.startswith('From:'):
4+
if line.startswith('From:'):
55
print(line)

Diff for: code3/search3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
for line in fhand:
33
line = line.rstrip()
44
# Skip 'uninteresting lines'
5-
if not line.startswith('From:'):
5+
if not line.startswith('From:'):
66
continue
77
# Process our 'interesting' line
88
print(line)

Diff for: code3/search6.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
fhand = open(fname)
33
count = 0
44
for line in fhand:
5-
if line.startswith('Subject:'):
5+
if line.startswith('Subject:'):
66
count = count + 1
77
print('There were', count, 'subject lines in', fname)

Diff for: code3/search7.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
exit()
77
count = 0
88
for line in fhand:
9-
if line.startswith('Subject:'):
9+
if line.startswith('Subject:'):
1010
count = count + 1
1111
print('There were', count, 'subject lines in', fname)

0 commit comments

Comments
 (0)