summaryrefslogtreecommitdiffstats
path: root/pyload/__init__.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 12:22:20 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 12:22:20 +0200
commit906bb7c1ecc5c34aa93148894eef763f27eba98e (patch)
tree2f09a639cdd9e414e8f165a667c71a837288d4de /pyload/__init__.py
parentRevert damaged logo.png (diff)
downloadpyload-906bb7c1ecc5c34aa93148894eef763f27eba98e.tar.xz
Other import fixes
Diffstat (limited to 'pyload/__init__.py')
-rw-r--r--pyload/__init__.py4
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":