Mercurial > p > roundup > code
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 5805:39a5f40ae4d4 | 5806:abee2c2c822e |
|---|---|
| 6 """ | 6 """ |
| 7 __docformat__ = 'restructuredtext' | 7 __docformat__ = 'restructuredtext' |
| 8 | 8 |
| 9 import os, marshal, time | 9 import os, marshal, time |
| 10 | 10 |
| 11 from cgi import escape | 11 try: |
| 12 from html import escape | |
| 13 except ImportError: | |
| 14 from cgi import escape | |
| 15 | |
| 12 from roundup import hyperdb | 16 from roundup import hyperdb |
| 13 from roundup.i18n import _ | 17 from roundup.i18n import _ |
| 14 from roundup.anypy.dbm_ import anydbm, whichdb | 18 from roundup.anypy.dbm_ import anydbm, whichdb |
| 15 | 19 |
| 16 | 20 |
