diff --git a/gramps/gen/plug/_options.py b/gramps/gen/plug/_options.py index 33a94b1a3..e1767f6f9 100644 --- a/gramps/gen/plug/_options.py +++ b/gramps/gen/plug/_options.py @@ -31,7 +31,7 @@ General option handling, including saving and parsing. # Standard Python modules # #------------------------------------------------------------------------- -import os, io +import os import sys #------------------------------------------------------------------------- @@ -201,7 +201,7 @@ class OptionListCollection: """ Saves the current OptionListCollection to the associated file. """ - file = io.open(self.filename, "w", encoding="utf-8") + file = open(self.filename, "w", encoding="utf-8") file.write("\n") file.write('\n') diff --git a/gramps/gen/plug/utils.py b/gramps/gen/plug/utils.py index 0a7f9ac2f..f2ecfac9c 100644 --- a/gramps/gen/plug/utils.py +++ b/gramps/gen/plug/utils.py @@ -281,7 +281,6 @@ def load_addon_file(path, callback=None): """ from urllib.request import urlopen import tarfile - import io if (path.startswith("http://") or path.startswith("https://") or path.startswith("ftp://")):