mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
11 lines
235 B
Python
11 lines
235 B
Python
|
|
import yaml
|
|
|
|
|
|
class YmlWriter:
|
|
|
|
@staticmethod
|
|
def writeYmlFile(file_path : str, obj : dict) -> None:
|
|
|
|
with open(file_path, 'w') as outfile:
|
|
yaml.dump(obj, outfile, default_flow_style=False, sort_keys=False) |