Skip to content

Commit a04d9d3

Browse files
committed
Merge pull request kivy#647 from Konubinix/master
Make unistr available in logger
2 parents 982ff8b + 7881a0b commit a04d9d3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pythonforandroid/logger.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
stdout = codecs.getwriter('utf8')(stdout)
1616
stderr = codecs.getwriter('utf8')(stderr)
1717

18+
if six.PY2:
19+
unistr = unicode
20+
else:
21+
unistr = str
22+
1823
# monkey patch to show full output
1924
sh.ErrorReturnCode.truncate_cap = 999999
2025

@@ -216,4 +221,3 @@ def printtail(out, name, forecolor, tail_n=0,
216221
raise
217222

218223
return output
219-

0 commit comments

Comments
 (0)