Fix pep8 violations
Make change pass flake8, fix a couple of whitespace problems and remove commented out code that is not needed (replicates existing code). Change-Id: Ie6381a866be6062399784f33ea55078975211e59
This commit is contained in:
parent
9eee45ea53
commit
c5ed51d3fc
|
@ -704,10 +704,9 @@ class WADLHandler(xml.sax.ContentHandler):
|
|||
for param, doc in self.url_params.items():
|
||||
if ('{%s}' % param) in url:
|
||||
parameter = create_parameter(param, 'template', doc)
|
||||
parameter['required'] = True # in = path, requires true
|
||||
# in = path, requires true
|
||||
parameter['required'] = True
|
||||
self.current_api['parameters'].append(parameter)
|
||||
#self.current_api['parameters'].append(
|
||||
# create_parameter(param, 'template', doc))
|
||||
|
||||
# URL paths
|
||||
if name == 'resource':
|
||||
|
@ -918,8 +917,7 @@ def main1(source_file, output_dir):
|
|||
tag_array.append(
|
||||
{"description": tag['description'],
|
||||
"name": tag['name'],
|
||||
"x-summary": tag['summary']
|
||||
})
|
||||
"x-summary": tag['summary']})
|
||||
|
||||
# Load supplementary examples file
|
||||
example_name = (api_ref['service']
|
||||
|
|
Loading…
Reference in New Issue