summaryrefslogtreecommitdiffhomepage
path: root/libs/dynaconf/vendor/toml/ordered.py
diff options
context:
space:
mode:
Diffstat (limited to 'libs/dynaconf/vendor/toml/ordered.py')
-rw-r--r--libs/dynaconf/vendor/toml/ordered.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/dynaconf/vendor/toml/ordered.py b/libs/dynaconf/vendor/toml/ordered.py
new file mode 100644
index 000000000..6b8d9c19c
--- /dev/null
+++ b/libs/dynaconf/vendor/toml/ordered.py
@@ -0,0 +1,15 @@
+from collections import OrderedDict
+from . import TomlEncoder
+from . 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)