Mercurial > p > roundup > code
annotate roundup/anypy/cgi_.py @ 7598:4376d8c19b2a
docs: remove COPYING.html from website/www tree.
The file should not be published. It gets published as license.html
and linked as such from the side menu.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 08 Aug 2023 22:47:58 -0400 |
| parents | 978285986b2c |
| children | d5d7ecd31864 |
| rev | line source |
|---|---|
|
7582
978285986b2c
fix: issue2551193 - Fix roundup for removal of cgi and cgitb ...
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
1 try: |
|
978285986b2c
fix: issue2551193 - Fix roundup for removal of cgi and cgitb ...
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
2 # used for python2 and python 3 < 3.13 |
|
978285986b2c
fix: issue2551193 - Fix roundup for removal of cgi and cgitb ...
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
3 import cgi as cgi |
|
978285986b2c
fix: issue2551193 - Fix roundup for removal of cgi and cgitb ...
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
4 from cgi import FieldStorage, MiniFieldStorage |
|
978285986b2c
fix: issue2551193 - Fix roundup for removal of cgi and cgitb ...
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
5 except ImportError: |
|
978285986b2c
fix: issue2551193 - Fix roundup for removal of cgi and cgitb ...
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
6 # use for python3 >= 3.13 |
|
978285986b2c
fix: issue2551193 - Fix roundup for removal of cgi and cgitb ...
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
7 from roundup.anypy.vendored import cgi |
|
978285986b2c
fix: issue2551193 - Fix roundup for removal of cgi and cgitb ...
John Rouillard <rouilj@ieee.org>
parents:
diff
changeset
|
8 from roundup.anypy.vendored.cgi import FieldStorage, MiniFieldStorage |
