summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@jelmer.uk>2019-12-01 16:17:05 +0000
committerJelmer Vernooij <jelmer@jelmer.uk>2019-12-01 16:17:05 +0000
commit25febdf3dba16da105209e59b0ed304f83689b0c (patch)
tree2c29f5b593d7c1b7772ceea22654e9ec7189ea15
parentcf8a7f49db9df39af8f0b8ca17b2546a447ffabd (diff)
downloadpython-fastimport-git-25febdf3dba16da105209e59b0ed304f83689b0c.tar.gz
Avoid redefining variable.
-rw-r--r--fastimport/parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fastimport/parser.py b/fastimport/parser.py
index 5e399be..d53ffe5 100644
--- a/fastimport/parser.py
+++ b/fastimport/parser.py
@@ -597,7 +597,7 @@ class ImportParser(LineBasedParser):
parts[1] = parts[1][1:-1]
elif parts[1].startswith(b'"') or parts[1].endswith(b'"'):
self.abort(errors.BadFormat, '?', '?', s)
- return [_unquote_c_string(s) for s in parts]
+ return [_unquote_c_string(part) for part in parts]
def _mode(self, s):
"""Check file mode format and parse into an int.