configparser.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """Convenience module importing everything from backports.configparser."""
  4. from __future__ import absolute_import
  5. from __future__ import division
  6. from __future__ import print_function
  7. from __future__ import unicode_literals
  8. from backports.configparser import (
  9. RawConfigParser,
  10. ConfigParser,
  11. SafeConfigParser,
  12. SectionProxy,
  13. Interpolation,
  14. BasicInterpolation,
  15. ExtendedInterpolation,
  16. LegacyInterpolation,
  17. NoSectionError,
  18. DuplicateSectionError,
  19. DuplicateOptionError,
  20. NoOptionError,
  21. InterpolationError,
  22. InterpolationMissingOptionError,
  23. InterpolationSyntaxError,
  24. InterpolationDepthError,
  25. ParsingError,
  26. MissingSectionHeaderError,
  27. ConverterMapping,
  28. DEFAULTSECT,
  29. MAX_INTERPOLATION_DEPTH,
  30. )
  31. from backports.configparser import Error, _UNSET, _default_dict, _ChainMap # noqa: F401
  32. __all__ = [
  33. "NoSectionError",
  34. "DuplicateOptionError",
  35. "DuplicateSectionError",
  36. "NoOptionError",
  37. "InterpolationError",
  38. "InterpolationDepthError",
  39. "InterpolationMissingOptionError",
  40. "InterpolationSyntaxError",
  41. "ParsingError",
  42. "MissingSectionHeaderError",
  43. "ConfigParser",
  44. "SafeConfigParser",
  45. "RawConfigParser",
  46. "Interpolation",
  47. "BasicInterpolation",
  48. "ExtendedInterpolation",
  49. "LegacyInterpolation",
  50. "SectionProxy",
  51. "ConverterMapping",
  52. "DEFAULTSECT",
  53. "MAX_INTERPOLATION_DEPTH",
  54. ]
  55. # NOTE: names missing from __all__ imported anyway for backwards compatibility.