From 6d9a88f415f0544cf9c9235c81acfe147cd344eb Mon Sep 17 00:00:00 2001 From: Corne Dorrestijn Date: Tue, 12 Aug 2014 14:28:18 +0200 Subject: [PATCH] Fixed inconsistent newlines --- script/bootstrap.py | 2 ++ script/lib/util.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/script/bootstrap.py b/script/bootstrap.py index 7d8447b88..443a4767f 100755 --- a/script/bootstrap.py +++ b/script/bootstrap.py @@ -34,6 +34,7 @@ def main(): touch_config_gypi() update_atom_shell() + def parse_args(): parser = argparse.ArgumentParser(description='Bootstrap this project') parser.add_argument('-u', '--url', @@ -47,6 +48,7 @@ def parse_args(): help='Prints the output of the subprocesses') return parser.parse_args() + def update_submodules(): execute(['git', 'submodule', 'sync']) execute(['git', 'submodule', 'update', '--init', '--recursive']) diff --git a/script/lib/util.py b/script/lib/util.py index 1f1d5c4fa..ead33ef63 100644 --- a/script/lib/util.py +++ b/script/lib/util.py @@ -19,11 +19,13 @@ def tempdir(prefix=''): atexit.register(shutil.rmtree, directory) return directory + def enable_verbose_execute(): print 'Running in verbose mode' global verbose_mode verbose_mode = True + @contextlib.contextmanager def scoped_cwd(path): cwd = os.getcwd()