This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Max gerrit-no-reply at lists.osmocom.orgMax has uploaded this change for review. ( https://gerrit.osmocom.org/11935 Change subject: ctrl2cgi: remove unused function ...................................................................... ctrl2cgi: remove unused function Change-Id: I1bff680b301b06e3b178d59bdcb86c4773ad9296 --- M scripts/ctrl2cgi.py 1 file changed, 0 insertions(+), 14 deletions(-) git pull ssh://gerrit.osmocom.org:29418/python/osmo-python-tests refs/changes/35/11935/1 diff --git a/scripts/ctrl2cgi.py b/scripts/ctrl2cgi.py index 1b5e952..b51867a 100755 --- a/scripts/ctrl2cgi.py +++ b/scripts/ctrl2cgi.py @@ -46,20 +46,6 @@ # keys from OpenBSC openbsc/src/libbsc/bsc_vty.c fix = { 'invalid' : 0, 'fix2d' : 1, 'fix3d' : 1 } # CGI server treats it as boolean but expects int -def patch_cgi_resp(r): - str = r.decode('utf-8') - lines = str.splitlines() - i = 0 - #search for empty line, marks start of body - for l in lines: - i += 1 - if l == '': - break - print('i="%r"' % i) - json_lines = lines[i:] - json_str = '\n'.join(json_lines) - return json.loads(json_str) - @defer.inlineCallbacks def handle_reply(f, log, resp): """ -- To view, visit https://gerrit.osmocom.org/11935 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: python/osmo-python-tests Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I1bff680b301b06e3b178d59bdcb86c4773ad9296 Gerrit-Change-Number: 11935 Gerrit-PatchSet: 1 Gerrit-Owner: Max <msuraev at sysmocom.de> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181126/392f3a80/attachment.htm>