Skip to content
Snippets Groups Projects
Commit 3ae5fd05 authored by Javier Jardón's avatar Javier Jardón
Browse files

Fix E305 warnings

parent d3c32ca2
No related branches found
No related tags found
1 merge request!746Some pycodestyle (PEP8) fixes
......@@ -645,6 +645,7 @@ def _pretty_size(size, dec_places=0):
psize /= 1024
return "{size:g}{unit}".format(size=round(psize, dec_places), unit=unit)
# A sentinel to be used as a default argument for functions that need
# to distinguish between a kwarg set to None and an unset kwarg.
_sentinel = object()
......
......@@ -455,6 +455,7 @@ def run_bst(directory, force, source_cache, description, palette):
return 0
if __name__ == '__main__':
try:
run_bst()
......
......@@ -129,6 +129,7 @@ def assert_cache_keys(project_dir, output):
"Use tests/cachekey/update.py to automatically " +
"update this test case")
##############################################
# Test Entry Point #
##############################################
......
......@@ -65,5 +65,6 @@ def update_keys():
write_expected_key(element_name, actual_keys[element_name])
if __name__ == '__main__':
update_keys()
......@@ -288,6 +288,7 @@ def test_build_checkout_force_tarball(datafiles, cli):
assert os.path.join('.', 'usr', 'bin', 'hello') in tar.getnames()
assert os.path.join('.', 'usr', 'include', 'pony.h') in tar.getnames()
fetch_build_checkout_combos = \
[("strict", kind) for kind in ALL_REPO_KINDS] + \
[("non-strict", kind) for kind in ALL_REPO_KINDS]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment