Commits

Andriy Kornatskyy committed ee2a1e5

Fixed compatibility issue with python 3.2.

Comments (0)

Files changed (2)

src/wheezy/html/comp.py

 
 if PY3:  # pragma: nocover
     str_type = str
+    xrange = range
 else:  # pragma: nocover
     str_type = unicode
+    xrange = xrange
 
 
 if PY3:  # pragma: nocover

src/wheezy/html/ext/template.py

 import re
 
 
+from wheezy.html.comp import xrange
 from wheezy.html.ext.lexer import Preprocessor
 from wheezy.html.ext.lexer import WhitespacePreprocessor