diff options
Diffstat (limited to 'pyload/__init__.py')
-rw-r--r-- | pyload/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/__init__.py b/pyload/__init__.py index 32235c68f..fe1e04437 100644 --- a/pyload/__init__.py +++ b/pyload/__init__.py @@ -51,11 +51,11 @@ sys.path.append(os.path.join(pypath, "lib", "Python", "Lib")) sys.path.append(os.path.join(pypath, "lib")) -from codecs import getwriter +import codecs from pyload.utils import get_console_encoding -sys.stdout = getwriter(get_console_encoding(sys.stdout.encoding))(sys.stdout, errors="replace") +sys.stdout = codecs.getwriter(get_console_encoding(sys.stdout.encoding))(sys.stdout, errors="replace") if homedir == "~" and os.name == "nt": |