aboutsummaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorPaul Sokolovsky <paul.sokolovsky@linaro.org>2012-04-24 16:18:21 +0300
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2012-04-24 16:18:21 +0300
commita8b62e090ec73fb3efbe012add9d7b00ae543fec (patch)
treef80b99702e78d5b6b6fe416730e441903e758c96 /node
parentc763ee2774a6cd2a932c6af560fa066b841338c6 (diff)
PEP8 double-lining.
Diffstat (limited to 'node')
-rwxr-xr-xnode/prepare_build_config.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/node/prepare_build_config.py b/node/prepare_build_config.py
index 5b05aaa..1dd7f7e 100755
--- a/node/prepare_build_config.py
+++ b/node/prepare_build_config.py
@@ -16,6 +16,7 @@ BUILD_CONFIG_FILE = "/var/run/build-tools/build-config"
class BuildConfigMismatchException(Exception):
pass
+
def shell_unquote(s):
# Primitive implementation, but we didn't really advertize
# support for shell quoting, and I never saw it used
@@ -27,6 +28,7 @@ def shell_unquote(s):
return s[1:-1]
return s
+
def get_slave_type():
slave_type = ""
try:
@@ -37,6 +39,7 @@ def get_slave_type():
pass
return slave_type
+
def validate_config(config, slave_type):
"""Validate various constraints on the config params and overall
environment."""
@@ -89,6 +92,7 @@ def convert_config_to_shell(config_text, out_filename):
out.close()
return config
+
def main(config_in, is_base64):
if is_base64:
config_in = base64.b64decode(config_in)
@@ -106,4 +110,3 @@ if __name__ == "__main__":
if len(args) != 1:
optparser.error("Wrong number of arguments")
main(args[0], options.base64)
-