mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-09 13:29:16 +00:00
fix pylint W0101
This commit is contained in:
@@ -11,7 +11,7 @@ usage example:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import io
|
import sys
|
||||||
from docopt import docopt
|
from docopt import docopt
|
||||||
from ruamel.yaml import YAML as yaml
|
from ruamel.yaml import YAML as yaml
|
||||||
|
|
||||||
@@ -40,13 +40,11 @@ def change_link(path, value, ignores):
|
|||||||
continue
|
continue
|
||||||
val[ENTRY] = value
|
val[ENTRY] = value
|
||||||
|
|
||||||
output = io.StringIO()
|
|
||||||
data = yaml()
|
data = yaml()
|
||||||
data.default_flow_style = False
|
data.default_flow_style = False
|
||||||
data.indent = 2
|
data.indent = 2
|
||||||
data.typ = 'rt'
|
data.typ = 'rt'
|
||||||
data.dump(content, output)
|
data.dump(content, sys.stdout)
|
||||||
print(output)
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|||||||
Reference in New Issue
Block a user