mirror of
https://github.com/dgelessus/python-rsrcfork.git
synced 2024-11-04 21:04:34 +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 = []
|
||||
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user