Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d044b7b

Browse files
authored
new preamble/body demarcation string
As defined, "skip_gutenberg_header" would run through to the end of the file on many inputs (including the example of Emma!), leaving the ultimate output of the script empty.
1 parent ad64978 commit d044b7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/analyze_book1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def skip_gutenberg_header(fp):
4040
fp: open file object
4141
"""
4242
for line in fp:
43-
if line.startswith('*END*THE SMALL PRINT!'):
43+
if line.startswith('*** START OF TH'):
4444
break
4545

4646

0 commit comments

Comments
 (0)