Remove unused loop counter from _bytes_unescape

This commit is contained in:
dgelessus 2019-09-03 01:35:47 +02:00
parent c373b9fe28
commit fb827e4073

View File

@ -35,7 +35,6 @@ def _bytes_unescape(string: str) -> bytes:
out = []
it = iter(string)
n = 0
for char in it:
if char == "\\":
try:
@ -51,7 +50,6 @@ def _bytes_unescape(string: str) -> bytes:
raise ValueError("End of string in escape sequence")
else:
out.append(ord(char))
n += 1
return bytes(out)