Improve python3 compatibility in webconfig.py

This commit is contained in:
ridiculousfish 2012-09-06 02:03:21 -07:00
parent 1ba0bfd10c
commit e0764bb25e

View file

@ -199,7 +199,7 @@ def ansi_to_html(val):
span_open = False span_open = False
# Text is at even indexes, escape sequences at odd indexes # Text is at even indexes, escape sequences at odd indexes
for i in xrange(len(separated)): for i in range(len(separated)):
component = separated[i] component = separated[i]
if i % 2 == 0: if i % 2 == 0:
# It's text, possibly empty # It's text, possibly empty