2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-09 02:15:21 +00:00

[#777,!464] Minor python changes after review:

- removed commented out code
 - better check for first character
This commit is contained in:
Tomek Mrugalski
2019-08-07 12:57:58 +02:00
parent 69a07ac4a7
commit 3ba1a26553

View File

@@ -30,7 +30,7 @@ def read_input_files(files):
for f in files:
name = os.path.basename(f)[:-5]
# Skip special names starting with _ (such as _template.json)
if name[:1] == '_':
if name[0] == '_':
print("Skipping %s (starts with underscore)" % f)
continue
with open(f) as fp:
@@ -149,9 +149,6 @@ API Reference
for line in resp_syntax:
rst += ' %s\n' % line
#txt = json.dumps(resp_syntax, indent=4, separators=(',', ': '))
#lines = [ ' %s' % l for l in txt.splitlines()]
#rst += '\n'.join(lines)
else:
rst += ' {\n'
rst += ' "result": "<integer>",\n'