Fix F821 flake8 warning (x47).

Ignore warnings related to Python 2, because it's going away soon.
This commit is contained in:
Aymeric Augustin committed 2019-12-22 10:59:07 +01:00
1 parent 631be27078
commit 2ab78325f0
21 files changed
+78 -38

No files matched your search

+1 -1
View File
@@ -184,7 +184,7 @@ class SwagProcessor(DataProcessor):
lines = []
for line in reader:
if sys.version_info[0] == 2:
line = list(unicode(cell, "utf-8") for cell in line)
line = list(unicode(cell, "utf-8") for cell in line) # noqa: F821
lines.append(line)
return lines