Change in python/osmo-python-tests[master]: ctrl2cgi: remove unused function

Max gerrit-no-reply at lists.osmocom.org
Mon Nov 26 15:04:35 UTC 2018


Max has submitted this change and it was merged. ( 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(-)

Approvals:
  Pau Espin Pedrol: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/scripts/ctrl2cgi.py b/scripts/ctrl2cgi.py
index 471cf23..ed4522c 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: merged
Gerrit-Change-Id: I1bff680b301b06e3b178d59bdcb86c4773ad9296
Gerrit-Change-Number: 11935
Gerrit-PatchSet: 2
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: daniel <dwillmann at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181126/d7abf5a1/attachment.html>


More information about the gerrit-log mailing list