mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 19:09:44 +00:00
linting
This commit is contained in:
@@ -1250,11 +1250,11 @@ class CfgYaml:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def _yaml_dump(cls, content, file, fmt='yaml'):
|
def _yaml_dump(cls, content, file, fmt='yaml'):
|
||||||
"""dump config file"""
|
"""dump config file"""
|
||||||
if 'toml':
|
if fmt == 'toml':
|
||||||
return cls.__toml_dump(content, file)
|
return cls.__toml_dump(content, file)
|
||||||
if 'yaml':
|
if fmt == 'yaml':
|
||||||
return cls.__yaml_dump(content, file)
|
return cls.__yaml_dump(content, file)
|
||||||
raise YamlException("unsupported format")
|
raise YamlException("unsupported format")
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def __yaml_dump(cls, content, file):
|
def __yaml_dump(cls, content, file):
|
||||||
|
|||||||
@@ -54,7 +54,6 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
path = sys.argv[1]
|
path = sys.argv[1]
|
||||||
content = yaml_load(path)
|
content = yaml_load(path)
|
||||||
#print(content)
|
|
||||||
content = replace_None(content)
|
content = replace_None(content)
|
||||||
out = toml_dump(content)
|
out = toml_dump(content)
|
||||||
print(out)
|
print(out)
|
||||||
|
|||||||
Reference in New Issue
Block a user