summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2014-11-22 16:27:37 +0100
committerYves Fischer <yvesf-git@xapek.org>2014-11-22 16:27:37 +0100
commit01c94a1d87c0874a45c4b80bfb9e6a86cbbbcb82 (patch)
tree6221e9b8beeeb4e365df5633080979d7318ec604
parentfcc3f76455f4d6dc6616bf1b6edc4527fd15a6bb (diff)
downloadscripts-01c94a1d87c0874a45c4b80bfb9e6a86cbbbcb82.tar.gz
scripts-01c94a1d87c0874a45c4b80bfb9e6a86cbbbcb82.zip
utf 8 ascii foo
-rwxr-xr-ximdb-lookup/imdbinfo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/imdb-lookup/imdbinfo.py b/imdb-lookup/imdbinfo.py
index 7d00a72..196b6ad 100755
--- a/imdb-lookup/imdbinfo.py
+++ b/imdb-lookup/imdbinfo.py
@@ -155,7 +155,7 @@ def do_index(args, imdb_ids):
'title' : 'Movie overview',
}
assert not os.path.exists("index.html"), "index.html already exists"
- open("index.html", "w").write(template.render(mapping))
+ open("index.html", "w").write(template.render(mapping).encode('utf-8'))
class HelpAction(argparse._HelpAction):
def __call__(self, parser, namespace, values, option_string=None):