mirror of https://github.com/sgoudham/Enso-Bot.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
941 B
Python
49 lines
941 B
Python
"""Multidict implementation.
|
|
|
|
HTTP Headers and URL query string require specific data structure:
|
|
multidict. It behaves mostly like a dict but it can have
|
|
several values for the same key.
|
|
"""
|
|
|
|
from ._abc import MultiMapping, MutableMultiMapping
|
|
from ._compat import USE_CYTHON_EXTENSIONS
|
|
|
|
__all__ = (
|
|
"MultiMapping",
|
|
"MutableMultiMapping",
|
|
"MultiDictProxy",
|
|
"CIMultiDictProxy",
|
|
"MultiDict",
|
|
"CIMultiDict",
|
|
"upstr",
|
|
"istr",
|
|
"getversion"
|
|
)
|
|
|
|
__version__ = "4.7.6"
|
|
|
|
|
|
try:
|
|
if not USE_CYTHON_EXTENSIONS:
|
|
raise ImportError
|
|
from ._multidict import (
|
|
MultiDictProxy,
|
|
CIMultiDictProxy,
|
|
MultiDict,
|
|
CIMultiDict,
|
|
istr,
|
|
getversion,
|
|
)
|
|
except ImportError: # pragma: no cover
|
|
from ._multidict_py import (
|
|
MultiDictProxy,
|
|
CIMultiDictProxy,
|
|
MultiDict,
|
|
CIMultiDict,
|
|
istr,
|
|
getversion,
|
|
)
|
|
|
|
|
|
upstr = istr
|