missing encoding parameter

This commit is contained in:
Mark Pilgrim
2009-10-06 12:04:44 -04:00
parent 65c7ce67f0
commit ee5b53f577
+1 -1
View File
@@ -4,7 +4,7 @@ import re
# get list of chapters
chapters = []
for line in open('index.html'):
for line in open('index.html', encoding="utf-8"):
if not line.count('<li') or not line.count('<a href'): continue
chapters.append(line.split('<a href=', 1)[1].split('>', 1)[0])
sections = {}