##// END OF EJS Templates
py3: make py3 compat.iterbytestr simpler and faster...
Martin von Zweigbergk -
r31425:63a39d64 default
parent child Browse files
Show More
@@ -78,7 +78,7 b' if ispy3:'
78 78
79 79 def iterbytestr(s):
80 80 """Iterate bytes as if it were a str object of Python 2"""
81 return iter(s[i:i + 1] for i in range(len(s)))
81 return map(bytechr, s)
82 82
83 83 def sysstr(s):
84 84 """Return a keyword str to be passed to Python functions such as
General Comments 0
You need to be logged in to leave comments. Login now