mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
16 lines
378 B
Python
16 lines
378 B
Python
from collections import OrderedDict
|
|
from pip._vendor.toml import TomlEncoder
|
|
from pip._vendor.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)
|