py23 Fix up byteord() implementation
This commit is contained in:
parent
3e8795d99a
commit
d3689390a6
@ -21,7 +21,7 @@ except:
|
||||
def bytechr(n):
|
||||
return bytes([n])
|
||||
def byteord(c):
|
||||
return ord(c) if isinstance(c, str) else c
|
||||
return c if isinstance(c, int) else ord(c)
|
||||
|
||||
try:
|
||||
from cStringIO import StringIO
|
||||
|
Loading…
x
Reference in New Issue
Block a user