<p>Max has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/11934">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ctrl2cgi: explicitly ignore arguments to lambda function<br><br>Change-Id: I44035323b70f04eb8f5dc12123cb708f53eba188<br>---<br>M scripts/ctrl2cgi.py<br>1 file changed, 1 insertion(+), 1 deletion(-)<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/34/11934/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 bdbd5c5..fadb183 100755</span><br><span>--- a/scripts/ctrl2cgi.py</span><br><span>+++ b/scripts/ctrl2cgi.py</span><br><span>@@ -108,7 +108,7 @@</span><br><span>         loc = l.split('.')</span><br><span>         t_type = loc[-1]</span><br><span>         p = partial(lambda a, i: a[i] if len(a) > i else None, loc) # parse helper</span><br><span style="color: hsl(0, 100%, 40%);">-        method = getattr(self, 'handle_' + t_type.replace('-', ''), lambda: "Unhandled %s trap" % t_type)</span><br><span style="color: hsl(120, 100%, 40%);">+        method = getattr(self, 'handle_' + t_type.replace('-', ''), lambda _: "Unhandled %s trap" % t_type)</span><br><span>         method(p(1), p(3), p(5), p(7), r) # we expect net.0.bsc.666.bts.2.trx.1 format for trap prefix</span><br><span> </span><br><span>     def ctrl_SET_REPLY(self, data, _, v):</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/11934">change 11934</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/11934"/><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: I44035323b70f04eb8f5dc12123cb708f53eba188 </div>
<div style="display:none"> Gerrit-Change-Number: 11934 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Max <msuraev@sysmocom.de> </div>