From 906bb7c1ecc5c34aa93148894eef763f27eba98e Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 12 May 2015 12:22:20 +0200 Subject: Other import fixes --- pyload/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyload/__init__.py') 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": -- cgit v1.2.3