flake8: apply E3 rules

This commit is contained in:
Yuming Zhu 2020-02-26 02:31:31 +08:00
parent 05340b146b
commit 0f727a2ab4
32 changed files with 534 additions and 70 deletions

View file

@ -52,6 +52,7 @@ def deprecated(message):
warnings.simplefilter('always', DeprecationWarning)
warnings.warn(message, DeprecationWarning)
def _changelogDate(cldate):
return time.strftime('%a %b %d %Y', time.strptime(koji.formatTime(cldate), '%Y-%m-%d %H:%M:%S'))
@ -69,6 +70,7 @@ def formatChangelog(entries):
koji._fix_print(entry['text']))
return result
DATE_RE = re.compile(r'(\d+)-(\d+)-(\d+)')
TIME_RE = re.compile(r'(\d+):(\d+):(\d+)')
@ -498,7 +500,6 @@ def move_and_symlink(src, dst, relative=True, create_dir=False):
os.symlink(dst, src)
def joinpath(path, *paths):
"""A wrapper around os.path.join that limits directory traversal"""