From 67828265835a1785d90252568c46eee644045c1c Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Mon, 4 Jan 2010 21:28:57 -0500 Subject: [PATCH] horray for subtle UTF8-is-not-ASCII bugs --- util/flatten.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/flatten.py b/util/flatten.py index ca5debe..f4b716b 100644 --- a/util/flatten.py +++ b/util/flatten.py @@ -5,7 +5,7 @@ import time # get list of chapters chapters = [] -for line in open('index.html'): +for line in open('index.html', encoding="utf-8"): if not line.count('', 1)[0])