summaryrefslogtreecommitdiffhomepage
path: root/libs/dynaconf/vendor/toml/ordered.py
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2023-10-14 09:56:21 -0400
committerGitHub <[email protected]>2023-10-14 09:56:21 -0400
commitc89da3e6192a519ccefa6bb7d9f9c9eaa280d373 (patch)
tree6343200ac81b8c7e8eb089ebfb828768f4d94c4f /libs/dynaconf/vendor/toml/ordered.py
parentd6579417ba3b3555bff3af446bef8a56e2d7a7c6 (diff)
downloadbazarr-1.3.2-beta.0.tar.gz
bazarr-1.3.2-beta.0.zip
Changing from config.ini to config.yamlv1.3.2-beta.0
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)