Remove redundant io imports
This commit is contained in:
parent
d13d2e70f7
commit
2d2ee2939c
@ -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')
|
||||
|
||||
|
@ -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://")):
|
||||
|
Loading…
Reference in New Issue
Block a user