summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin ! <just1602@riseup.net>2020-11-09 17:57:24 -0500
committerjelle van der Waa <jelle@vdwaa.nl>2020-11-11 22:23:29 +0100
commit87977c599bcb94f5a9c8abf02dd5981b0fcb0314 (patch)
tree8659f8a119c89479ee38c83b4496bc0b45ed732c
parentc260e57e3cf60b660439256b88fbe87c8ed40e9b (diff)
downloadarchweb-87977c599bcb94f5a9c8abf02dd5981b0fcb0314.tar.gz
archweb-87977c599bcb94f5a9c8abf02dd5981b0fcb0314.zip
Fix pep8 error
-rw-r--r--devel/management/commands/reporead.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index afb4d5d3..ef524745 100644
--- a/devel/management/commands/reporead.py
+++ b/devel/management/commands/reporead.py
@@ -570,13 +570,11 @@ def parse_repo(repopath):
del files_data
elif fname in ('desc', 'depends'):
data_file = repodb.extractfile(tarinfo)
- data_file = io.TextIOWrapper(io.BytesIO(data_file.read()),
- encoding='UTF-8')
+ data_file = io.TextIOWrapper(io.BytesIO(data_file.read()), encoding='UTF-8')
try:
pkgs[pkgid].populate(parse_info(data_file))
except UnicodeDecodeError:
- logger.warning("Could not correctly decode %s, skipping file",
- tarinfo.name)
+ logger.warning("Could not correctly decode %s, skipping file", tarinfo.name)
data_file.close()
del data_file