From: Tomek Mrugalski Date: Wed, 7 Aug 2019 10:57:58 +0000 (+0200) Subject: [#777,!464] Minor python changes after review: X-Git-Tag: Kea-1.6.0~41^2~155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ba1a265537330308c313a38b85e84cbe02704ae;p=thirdparty%2Fkea.git [#777,!464] Minor python changes after review: - removed commented out code - better check for first character --- diff --git a/doc/sphinx/api2doc.py b/doc/sphinx/api2doc.py index 3c5f17040c..55b9079a88 100755 --- a/doc/sphinx/api2doc.py +++ b/doc/sphinx/api2doc.py @@ -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": "",\n'