AboutDialog crashes with Python3

This commit is contained in:
Josip 2014-04-06 20:44:51 +02:00
parent fa3645bf15
commit d69400b513

View File

@ -32,6 +32,7 @@ from __future__ import unicode_literals
import os
import sys
import io
##import logging
##_LOG = logging.getLogger(".GrampsAboutDialog")
@ -229,7 +230,7 @@ def _get_authors():
parser = make_parser()
parser.setContentHandler(AuthorParser(authors, contributors))
authors_file = open(AUTHORS_FILE)
authors_file = io.open(AUTHORS_FILE, encoding='utf-8')
parser.parse(authors_file)
authors_file.close()