Fix import for Python >3.8
This commit is contained in:
parent
d148c0b5ad
commit
19834f6a5d
1 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,7 @@
|
|||
import cgi
|
||||
try:
|
||||
from urllib.parse import parse_qs
|
||||
except ImportError:
|
||||
from cgi import parse_qs
|
||||
|
||||
class IllegalMethodException(BaseException):
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue