mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 21:29:43 +00:00
migrate from PyYAML to ruamel.yaml
This commit is contained in:
@@ -13,7 +13,7 @@ usage example:
|
||||
from docopt import docopt
|
||||
import sys
|
||||
import os
|
||||
import yaml
|
||||
from ruamel.yaml import YAML as yaml
|
||||
|
||||
USAGE = """
|
||||
change-link.py
|
||||
@@ -42,7 +42,7 @@ def main():
|
||||
ignores = args['--ignore']
|
||||
|
||||
with open(path, 'r') as f:
|
||||
content = yaml.safe_load(f)
|
||||
content = yaml(typ='safe').load(f)
|
||||
for k, v in content[key].items():
|
||||
if k in ignores:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user