diff options
Diffstat (limited to 'imdb-lookup/imdbinfo.py')
-rwxr-xr-x | imdb-lookup/imdbinfo.py | 2 |
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): |