mirror of
https://github.com/phusion/baseimage-docker.git
synced 2026-03-26 04:18:46 +00:00
more pep8 linting (#400)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user