Mercurial > p > roundup > code
diff roundup/backends/sessions_dbm.py @ 5806:abee2c2c822e
More cgi.escape/html.escape fixes.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 12 Jun 2019 19:17:37 -0400 |
| parents | 0e6ed3d72f92 |
| children | 883c9e90b403 |
line wrap: on
line diff
--- a/roundup/backends/sessions_dbm.py Wed Jun 12 17:26:19 2019 -0400 +++ b/roundup/backends/sessions_dbm.py Wed Jun 12 19:17:37 2019 -0400 @@ -8,7 +8,11 @@ import os, marshal, time -from cgi import escape +try: + from html import escape +except ImportError: + from cgi import escape + from roundup import hyperdb from roundup.i18n import _ from roundup.anypy.dbm_ import anydbm, whichdb
