need to add encoding to delimiters for py3
This commit is contained in:
parent
7218a9ca39
commit
d1c54022a2
@ -188,10 +188,10 @@ def main():
|
|||||||
delims = []
|
delims = []
|
||||||
for (tstart, tstop) in delimPairs:
|
for (tstart, tstop) in delimPairs:
|
||||||
if tstart not in ["BEGIN", "END"]:
|
if tstart not in ["BEGIN", "END"]:
|
||||||
tstartBytes = bytearray(tstart)
|
tstartBytes = bytearray(tstart, encoding="utf8")
|
||||||
start = tstartBytes[0]
|
start = tstartBytes[0]
|
||||||
if tstop not in ["BEGIN", "END"]:
|
if tstop not in ["BEGIN", "END"]:
|
||||||
tstopBytes = bytearray(tstop)
|
tstopBytes = bytearray(tstop, encoding="utf8")
|
||||||
stop = tstopBytes[0]
|
stop = tstopBytes[0]
|
||||||
for i in range(len(testBytes)):
|
for i in range(len(testBytes)):
|
||||||
for j in range(len(testBytes) - 1, i, -1):
|
for j in range(len(testBytes) - 1, i, -1):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user