From 550fa227f0d78067f47d16f7e4b9745ac2a13c93 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Thu, 27 Jun 2024 09:25:11 +0200 Subject: [PATCH] fix pylint W0101 --- scripts/change_link.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/change_link.py b/scripts/change_link.py index f063027..5d7458c 100755 --- a/scripts/change_link.py +++ b/scripts/change_link.py @@ -11,7 +11,7 @@ usage example: """ import os -import io +import sys from docopt import docopt from ruamel.yaml import YAML as yaml @@ -40,13 +40,11 @@ def change_link(path, value, ignores): continue val[ENTRY] = value - output = io.StringIO() data = yaml() data.default_flow_style = False data.indent = 2 data.typ = 'rt' - data.dump(content, output) - print(output) + data.dump(content, sys.stdout) def main():