<p>Max has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/11935">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ctrl2cgi: remove unused function<br><br>Change-Id: I1bff680b301b06e3b178d59bdcb86c4773ad9296<br>---<br>M scripts/ctrl2cgi.py<br>1 file changed, 0 insertions(+), 14 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/python/osmo-python-tests refs/changes/35/11935/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/scripts/ctrl2cgi.py b/scripts/ctrl2cgi.py</span><br><span>index 1b5e952..b51867a 100755</span><br><span>--- a/scripts/ctrl2cgi.py</span><br><span>+++ b/scripts/ctrl2cgi.py</span><br><span>@@ -46,20 +46,6 @@</span><br><span> # keys from OpenBSC openbsc/src/libbsc/bsc_vty.c</span><br><span> fix = { 'invalid' : 0, 'fix2d' : 1, 'fix3d' : 1 } # CGI server treats it as boolean but expects int</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-def patch_cgi_resp(r):</span><br><span style="color: hsl(0, 100%, 40%);">-    str = r.decode('utf-8')</span><br><span style="color: hsl(0, 100%, 40%);">-    lines = str.splitlines()</span><br><span style="color: hsl(0, 100%, 40%);">-    i = 0</span><br><span style="color: hsl(0, 100%, 40%);">-    #search for empty line, marks start of body</span><br><span style="color: hsl(0, 100%, 40%);">-    for l in lines:</span><br><span style="color: hsl(0, 100%, 40%);">-        i += 1</span><br><span style="color: hsl(0, 100%, 40%);">-        if l == '':</span><br><span style="color: hsl(0, 100%, 40%);">-            break</span><br><span style="color: hsl(0, 100%, 40%);">-    print('i="%r"' % i)</span><br><span style="color: hsl(0, 100%, 40%);">-    json_lines = lines[i:]</span><br><span style="color: hsl(0, 100%, 40%);">-    json_str = '\n'.join(json_lines)</span><br><span style="color: hsl(0, 100%, 40%);">-    return json.loads(json_str)</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span> @defer.inlineCallbacks</span><br><span> def handle_reply(f, log, resp):</span><br><span>     """</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/11935">change 11935</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/11935"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: python/osmo-python-tests </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I1bff680b301b06e3b178d59bdcb86c4773ad9296 </div>
<div style="display:none"> Gerrit-Change-Number: 11935 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Max <msuraev@sysmocom.de> </div>