<p><a href="https://gerrit.asterisk.org/8854">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/8854/9/lib/python/asterisk/self_test/test_matcher.py">File lib/python/asterisk/self_test/test_matcher.py:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/8854/9/lib/python/asterisk/self_test/test_matcher.py@1">Patch Set #9, Line 1:</a> <code style="font-family:monospace,monospace">#!/usr/bin/env python</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Does test2_matcher still need to exist after the python2/3 compat changes go in?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">No.  test2_matcher was used because this test has to import from `asterisk.matcher`.  This review makes that import possible from python3 so we no longer have to restrict this test to python2 only.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/8854/9/runtests.py">File runtests.py:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/8854/9/runtests.py@677">Patch Set #9, Line 677:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">        tbl = {}<br>        for r in bad_chars:<br>            # we do +1 here to include the last item<br>            for i in range(r[0], r[1] + 1):<br>                tbl[chr(i)] = None<br>        return data.translate(tbl)<br></pre></blockquote></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I think I am misreading something here. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Python2: https://docs.python.org/2/library/string.html#string.translate<br>Python3: https://docs.python.org/3/library/stdtypes.html#str.translate</p><p style="white-space: pre-wrap; word-wrap: break-word;">Python3 does not support the 'deletechars' string.  Setting hash entries to None is supported by python2 and is the only way in python3.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/8854">change 8854</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.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.asterisk.org/8854"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: If76c2d3e11e4ab4552d0df7841287c8bb2de7918 </div>
<div style="display:none"> Gerrit-Change-Number: 8854 </div>
<div style="display:none"> Gerrit-PatchSet: 9 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Alexander Traud <pabstraud@compuserve.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 05 Jul 2018 16:43:00 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>