Skip to content
Snippets Groups Projects
Verified Commit 3e26744a authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

swh/manage: Fix flake8 warning

parent 8f92f183
Branches
Tags v0.0.65
No related merge requests found
......@@ -34,8 +34,8 @@ def aggregate_tarballs(extraction_dir, archive_paths):
Tuple (directory to clean up, archive path (aggregated or not))
"""
if len(archive_paths) > 1: # need to rebuild one archive
# from multiple ones
if len(archive_paths) > 1:
# need to rebuild one archive from multiple ones
os.makedirs(extraction_dir, 0o755, exist_ok=True)
dir_path = tempfile.mkdtemp(prefix='swh.deposit-',
dir=extraction_dir)
......
......@@ -19,15 +19,14 @@ DEFAULT_CONFIG = {
if __name__ == "__main__":
settings_file = 'development'
if sys.argv[1] == 'runserver': # override the default host:port
# for the 'runserver' task
if sys.argv[1] == 'runserver':
# override the default host:port for the 'runserver' task
conf = config.load_named_config('deposit/server',
default_conf=DEFAULT_CONFIG)
extra_cmd = ['%s:%s' % (conf['host'], conf['port'])]
cmd = sys.argv + extra_cmd
elif sys.argv[1] == 'test': # override the default settings file
# to read in testing mode
elif sys.argv[1] == 'test':
# override the default settings file to read in testing mode
settings_file = 'testing'
cmd = sys.argv
else: # otherwise, do nothing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment