diff options
author | spoob <spoob@gmx.de> | 2010-08-15 22:48:11 +0200 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2010-08-15 22:48:11 +0200 |
commit | 258a8799f5aa2a4637586bea0276adf969650ccc (patch) | |
tree | b704ca0a5aaf72e47f4ea62762d37c9007c9d980 /pyLoadCore.py | |
parent | scripts fix, rs fix, closed #127 (diff) | |
download | pyload-258a8799f5aa2a4637586bea0276adf969650ccc.tar.xz |
Youtube Playlist
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index fe7ba861f..c2cb7976a 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -50,6 +50,15 @@ from time import sleep from traceback import print_exc from xmlrpclib import Binary + +import locale +import codecs +encoding = locale.getlocale()[1] +if not encoding: + encoding = "us-ascii" +sys.stdout = codecs.getwriter(encoding)(sys.stdout, errors = "ignore") +sys.stderr = codecs.getwriter(encoding)(sys.stderr, errors = "ignore") + from module import InitHomeDir from module.AccountManager import AccountManager from module.CaptchaManager import CaptchaManager |