Skip to content

Commit b2ea2db

Browse files
committed
Yet another use of cgi.escape. Fixed.
1 parent f51a340 commit b2ea2db

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

roundup/cgi/TAL/TALInterpreter.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@
2020
import sys
2121
import getopt
2222
import re
23-
from cgi import escape
23+
24+
try:
25+
from html import escape
26+
except ImportError:
27+
from cgi import escape
28+
2429
from roundup.anypy.strings import StringIO
2530
#from DocumentTemplate.DT_Util import ustr
2631
ustr = str

0 commit comments

Comments
 (0)