mirror of
https://0xacab.org/anarsec/anarsec.guide.git
synced 2025-06-07 14:22:57 -04:00
python and typst script
This commit is contained in:
parent
da5f497ec1
commit
be05046783
19 changed files with 2223 additions and 0 deletions
15
layout/python/toml/ordered.py
Normal file
15
layout/python/toml/ordered.py
Normal file
|
@ -0,0 +1,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)
|
Loading…
Add table
Add a link
Reference in a new issue