Commit bfa87104 authored by Rémi Cardona's avatar Rémi Cardona
Browse files

[py3k] Import range from six.moves

Related to #268148.
parent f6875100a25c
......@@ -17,6 +17,7 @@
# You should have received a copy of the GNU Lesser General Public License along
# with logilab-mtconverter. If not, see <http://www.gnu.org/licenses/>.
from logilab.common.testlib import TestCase, unittest_main
from six.moves import range
import locale
from io import BytesIO
......@@ -46,7 +47,7 @@ class HtmlEscapeTC(TestCase):
def test_escape_special_chars(self):
for car, trcar in SPECIAL_CHARS.items():
yield self.assertEqual, xml_escape(car), trcar
for carnum in xrange(32):
for carnum in range(32):
car = chr(carnum)
if car in SPECIAL_CHARS:
continue
......@@ -56,7 +57,7 @@ class HtmlEscapeTC(TestCase):
def test_escape_special_chars_unicode(self):
for car, trcar in SPECIAL_CHARS.items():
yield self.assertEqual, xml_escape(unicode(car)), trcar
for carnum in xrange(32):
for carnum in range(32):
car = chr(carnum)
if car in SPECIAL_CHARS:
continue
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment