django-test/env/lib/python3.8/site-packages/toml/ordered.py

16 lines
354 B
Python
Raw Normal View History

2022-08-26 10:41:18 +00:00
from collections import OrderedDict
from toml import TomlEncoder
from toml import TomlDecoder
class TomlOrderedDecoder(TomlDecoder):
def __init__(self):
super(self.__class__, self).__init__(_dict=OrderedDict)
class TomlOrderedEncoder(TomlEncoder):
def __init__(self):
super(self.__class__, self).__init__(_dict=OrderedDict)