8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6beac27 commit 68b464cCopy full SHA for 68b464c
pythonforandroid/logger.py
@@ -7,11 +7,13 @@
7
from math import log10
8
from collections import defaultdict
9
from colorama import Style as Colo_Style, Fore as Colo_Fore
10
+import six
11
12
# This codecs change fixes a bug with log output, but crashes under python3
-# import codecs
1 6861 3
-# stdout = codecs.getwriter('utf8')(stdout)
14
-# stderr = codecs.getwriter('utf8')(stderr)
13
+if not six.PY3:
+ import codecs
15
+ stdout = codecs.getwriter('utf8')(stdout)
16
+ stderr = codecs.getwriter('utf8')(stderr)
17
18
# monkey patch to show full output
19
sh.ErrorReturnCode.truncate_cap = 999999
0 commit comments