1
0
mirror of https://github.com/phusion/baseimage-docker.git synced 2026-03-26 12:29:07 +00:00

more pep8 linting (#400)

This commit is contained in:
Zsolt Ero
2017-05-09 09:52:48 +02:00
committed by GitHub
parent 59d209cbe8
commit 9f998e1a09
2 changed files with 4 additions and 3 deletions

View File

@@ -96,7 +96,7 @@ def import_envvars(clear_existing_environment=True, override_existing_environmen
if clear_existing_environment: if clear_existing_environment:
os.environ.clear() os.environ.clear()
for name, value in new_env.items(): for name, value in new_env.items():
if override_existing_environment or not name in os.environ: if override_existing_environment or name not in os.environ:
os.environ[name] = value os.environ[name] = value
@@ -202,7 +202,7 @@ def run_command_killable(*argv):
pid = os.spawnvp(os.P_NOWAIT, filename, argv) pid = os.spawnvp(os.P_NOWAIT, filename, argv)
try: try:
status = waitpid_reap_other_children(pid) status = waitpid_reap_other_children(pid)
except BaseException as s: except BaseException:
warn("An error occurred. Aborting.") warn("An error occurred. Aborting.")
stop_child_process(filename, pid) stop_child_process(filename, pid)
raise raise
@@ -344,7 +344,7 @@ def main(args):
except KeyboardInterrupt: except KeyboardInterrupt:
stop_child_process(args.main_command[0], pid) stop_child_process(args.main_command[0], pid)
raise raise
except BaseException as s: except BaseException:
warn("An error occurred. Aborting.") warn("An error occurred. Aborting.")
stop_child_process(args.main_command[0], pid) stop_child_process(args.main_command[0], pid)
raise raise

View File

@@ -1,4 +1,5 @@
#!/usr/bin/python3 #!/usr/bin/python3
''' '''
Copyright (c) 2013-2015 Phusion Holding B.V. Copyright (c) 2013-2015 Phusion Holding B.V.