You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1022 B

4 years ago
  1. """Multidict implementation.
  2. HTTP Headers and URL query string require specific data structure:
  3. multidict. It behaves mostly like a dict but it can have
  4. several values for the same key.
  5. """
  6. from ._compat import USE_CYTHON_EXTENSIONS
  7. __all__ = ('MultiMapping', 'MutableMultiMapping',
  8. 'MultiDictProxy', 'CIMultiDictProxy',
  9. 'MultiDict', 'CIMultiDict', 'upstr', 'istr')
  10. __version__ = '4.5.2'
  11. from ._abc import MultiMapping, MutableMultiMapping
  12. try:
  13. if not USE_CYTHON_EXTENSIONS:
  14. raise ImportError
  15. from ._multidict import (MultiDictProxy,
  16. CIMultiDictProxy,
  17. MultiDict,
  18. CIMultiDict,
  19. upstr, istr)
  20. except ImportError: # pragma: no cover
  21. from ._multidict_py import (MultiDictProxy,
  22. CIMultiDictProxy,
  23. MultiDict,
  24. CIMultiDict,
  25. upstr, istr)