From fb827e40738867b5026979943f0fc1f4130c1619 Mon Sep 17 00:00:00 2001 From: dgelessus Date: Tue, 3 Sep 2019 01:35:47 +0200 Subject: [PATCH] Remove unused loop counter from _bytes_unescape --- rsrcfork/__main__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/rsrcfork/__main__.py b/rsrcfork/__main__.py index 3826c2f..9ecae3b 100644 --- a/rsrcfork/__main__.py +++ b/rsrcfork/__main__.py @@ -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)