25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
354B

  1. from collections import OrderedDict
  2. from toml import TomlEncoder
  3. from toml import TomlDecoder
  4. class TomlOrderedDecoder(TomlDecoder):
  5. def __init__(self):
  6. super(self.__class__, self).__init__(_dict=OrderedDict)
  7. class TomlOrderedEncoder(TomlEncoder):
  8. def __init__(self):
  9. super(self.__class__, self).__init__(_dict=OrderedDict)