Remove redundant io imports

This commit is contained in:
Nick Hall 2016-06-15 21:45:31 +01:00
parent d13d2e70f7
commit 2d2ee2939c
2 changed files with 2 additions and 3 deletions

View File

@ -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("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n")
file.write('<options>\n')

View File

@ -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://")):