summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorJoe Guo <joeg@catalyst.net.nz>2018-07-30 18:13:57 +1200
committerDouglas Bagnall <dbagnall@samba.org>2018-08-24 07:49:25 +0200
commit4fc08d8f14e281fb7492d5a196e456637406c514 (patch)
tree08c9734fded7017fa5270ce499b3641ab9b8332b /script
parentada5af53f7502aaacd9cebb35a3e3288ec5b24bc (diff)
downloadsamba-4fc08d8f14e281fb7492d5a196e456637406c514.tar.gz
PEP8: fix E111: indentation is not a multiple of four
Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'script')
-rw-r--r--script/generate_param.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/script/generate_param.py b/script/generate_param.py
index d31507c9cfc..c6ec8bc1448 100644
--- a/script/generate_param.py
+++ b/script/generate_param.py
@@ -119,8 +119,8 @@ param_type_dict = {
def generate_functions(path_in, path_out):
f = open(path_out, 'w')
try:
- f.write('/* This file was automatically generated by generate_param.py. DO NOT EDIT */\n\n')
- for parameter in iterate_all(options.filename):
+ f.write('/* This file was automatically generated by generate_param.py. DO NOT EDIT */\n\n')
+ for parameter in iterate_all(options.filename):
# filter out parameteric options
if ':' in parameter['name']:
continue
@@ -181,7 +181,7 @@ def make_s3_param_proto(path_in, path_out):
output_string += 'const '
param_type = mapping.get(parameter['type'])
if param_type is None:
- raise Exception(parameter['name'] + " has an invalid context " + parameter['context'])
+ raise Exception(parameter['name'] + " has an invalid context " + parameter['context'])
output_string += param_type
output_string += "lp_%s" % parameter['function']
@@ -231,7 +231,7 @@ def make_lib_proto(path_in, path_out):
output_string += 'const '
param_type = mapping.get(parameter['type'])
if param_type is None:
- raise Exception(parameter['name'] + " has an invalid context " + parameter['context'])
+ raise Exception(parameter['name'] + " has an invalid context " + parameter['context'])
output_string += param_type
output_string += "lpcfg_%s" % parameter['function']
@@ -251,7 +251,7 @@ def make_lib_proto(path_in, path_out):
else:
raise Exception(parameter['name'] + " has an invalid param type " + parameter['type'])
-
+
file_out.write(output_string)
finally:
file_out.close()
@@ -282,7 +282,7 @@ def make_param_defs(path_in, path_out, scope):
file_out.write("struct loadparm_service \n")
file_out.write("{\n")
file_out.write("\tbool autoloaded;\n")
-
+
for parameter in iterate_all(path_in):
# filter out parameteric options
if ':' in parameter['name']:
@@ -297,7 +297,7 @@ def make_param_defs(path_in, path_out, scope):
output_string = "\t"
param_type = mapping.get(parameter['type'])
if param_type is None:
- raise Exception(parameter['name'] + " has an invalid context " + parameter['context'])
+ raise Exception(parameter['name'] + " has an invalid context " + parameter['context'])
output_string += param_type
output_string += " %s;\n" % parameter['function']