projects
/
rainbowstream.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
working fine in CentOS
[rainbowstream.git]
/
rainbowstream
/
py3patch.py
diff --git
a/rainbowstream/py3patch.py
b/rainbowstream/py3patch.py
index 4ba959110dd8a202f8c410cda9064317c5e3822b..35927ee3533055bede60f655520892f9e2c9d788 100644
(file)
--- a/
rainbowstream/py3patch.py
+++ b/
rainbowstream/py3patch.py
@@
-30,3
+30,10
@@
else:
raw_input = input
lmap = lambda f, a: list(map(f, a))
str2u = u2str = lambda x: x
+
+
+def is_ascii(s):
+ """
+ Check if multibyte character or not
+ """
+ return all(ord(c) < 128 for c in s)