[asterisk-commits] mnicholson: branch mnicholson/failure-message r2444 - /asterisk/team/mnichols...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Sep 23 15:57:37 CDT 2011


Author: mnicholson
Date: Fri Sep 23 15:57:34 2011
New Revision: 2444

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=2444
Log:
attempted to clairify a comment

Modified:
    asterisk/team/mnicholson/failure-message/runtests.py

Modified: asterisk/team/mnicholson/failure-message/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mnicholson/failure-message/runtests.py?view=diff&rev=2444&r1=2443&r2=2444
==============================================================================
--- asterisk/team/mnicholson/failure-message/runtests.py (original)
+++ asterisk/team/mnicholson/failure-message/runtests.py Fri Sep 23 15:57:34 2011
@@ -220,9 +220,11 @@
 
         char_list = []
         for r in bad_chars:
-            # we do +1 here to include the last item
+            # we do +1 here because python ranges exclude the last item where
+            # as our illegal character ranges include the last item
             for i in range(r[0], r[1]+1):
                 char_list.append(chr(i))
+
         return data.translate(None, ''.join(char_list))
 
     def write_results_xml(self, fn, stdout=False):




More information about the asterisk-commits mailing list