Flake8 fixes

This commit is contained in:
Martin Curlej
2017-10-31 16:03:42 -04:00
committed by mprahl
parent 1eb3c653dd
commit c193ff7419
2 changed files with 3 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ Koji workflow
"""
class GenericBuilder(six.with_metaclass(ABCMeta)):
"""
External Api for builders

View File

@@ -1382,6 +1382,7 @@ def get_rpm_release_from_mmd(mmd):
dist_hash = hashlib.sha1(dist_str).hexdigest()[:8]
return conf.default_dist_tag_prefix + dist_hash
def create_dogpile_key_generator_func(skip_first_n_args=0):
"""
Creates dogpile key_generator function with additional features:
@@ -1398,6 +1399,7 @@ def create_dogpile_key_generator_func(skip_first_n_args=0):
"""
def key_generator(namespace, fn):
fname = fn.__name__
def generate_key(*arg, **kwarg):
key_template = fname + "_"
for s in arg[skip_first_n_args:]: