mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-22 23:18:12 +01:00
16 lines
354 B
Python
16 lines
354 B
Python
|
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)
|