flake8: apply W rules (prefering W503)

This commit is contained in:
Yuming Zhu 2020-02-27 23:11:49 +08:00
parent c5db34a8e1
commit 2a2c5cb729
8 changed files with 35 additions and 31 deletions

View file

@ -83,7 +83,7 @@ class RunRootTask(koji.tasks.BaseTaskHandler):
# path section are in form 'path%d' while order is important as some
# paths can be mounted inside other mountpoints
path_sections = [p for p in cp.sections() if re.match('path\d+', p)]
path_sections = [p for p in cp.sections() if re.match(r'path\d+', p)]
for section_name in sorted(path_sections, key=lambda x: int(x[4:])):
try:
self.config['paths'].append({