projects
/
rainbowstream.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
release v0.7.1
[rainbowstream.git]
/
rainbowstream
/
py3patch.py
diff --git
a/rainbowstream/py3patch.py
b/rainbowstream/py3patch.py
index adfbff281ebe64f1bb52b1b6fa7aa792cfddba48..153d10df737957063078e125dcb3777e7d46d9b6 100644
(file)
--- a/
rainbowstream/py3patch.py
+++ b/
rainbowstream/py3patch.py
@@
-23,6
+23,8
@@
unescape = HTMLParser().unescape
# raw_input and map function behaviour
if sys.version[0] == "2":
lmap = lambda f, a: map(f, a)
+ unc = lambda x: x.decode('utf-8')
else:
raw_input = input
lmap = lambda f, a: list(map(f, a))
+ unc = lambda x: x