summaryrefslogblamecommitdiffstats
path: root/venv/lib/python3.9/site-packages/toml/ordered.py
blob: 9c20c41a1b9bcdb641dc52865bce04ccdb8f046c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                               
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)