updated imports in tests

This commit is contained in:
ilvalle committed 2016-06-02 14:28:21 +02:00
1 parent 01bab81432
commit a1fd92b7f8
45 files changed
+182 -169

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@ from __future__ import print_function
import re
import urllib
from cgi import escape
from string import maketrans
from gluon._compat import maketrans, urllib_quote
try:
from ast import parse as ast_parse
@@ -1418,7 +1418,7 @@ def render(text,
return '[' + ','.join('<a href="#%s" class="%s">%s</a>' %
(id_prefix + d, b, d) for d in escape(code).split(',')) + ']'
elif b == 'latex':
return LATEX % urllib.quote(code)
return LATEX % urllib_quote(code)
elif b in html_colors:
return '<span style="color: %s">%s</span>' \
% (b, render(code, {}, {}, 'br', URL, environment, latex,