AboutDialog crashes with Python3
This commit is contained in:
parent
fa3645bf15
commit
d69400b513
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user