mirror of
https://github.com/dgelessus/python-rsrcfork.git
synced 2025-02-16 18:30:24 +00:00
Remove unused loop counter from _bytes_unescape
This commit is contained in:
parent
c373b9fe28
commit
fb827e4073
@ -35,7 +35,6 @@ def _bytes_unescape(string: str) -> bytes:
|
|||||||
|
|
||||||
out = []
|
out = []
|
||||||
it = iter(string)
|
it = iter(string)
|
||||||
n = 0
|
|
||||||
for char in it:
|
for char in it:
|
||||||
if char == "\\":
|
if char == "\\":
|
||||||
try:
|
try:
|
||||||
@ -51,7 +50,6 @@ def _bytes_unescape(string: str) -> bytes:
|
|||||||
raise ValueError("End of string in escape sequence")
|
raise ValueError("End of string in escape sequence")
|
||||||
else:
|
else:
|
||||||
out.append(ord(char))
|
out.append(ord(char))
|
||||||
n += 1
|
|
||||||
|
|
||||||
return bytes(out)
|
return bytes(out)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user