From 59f37d86a58121731284a2f3f56ac9dbf4a6949d Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Tue, 6 Aug 2024 16:31:04 +0530 Subject: [PATCH] ftests/systemd: Fix quote warnings Fix "Q001 Single quote multiline found but double quotes preferred" and multiple "Q000 Double quotes found but single quotes preferred" warnings. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- tests/ftests/systemd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ftests/systemd.py b/tests/ftests/systemd.py index dd339fbf..581e433a 100644 --- a/tests/ftests/systemd.py +++ b/tests/ftests/systemd.py @@ -35,14 +35,14 @@ class Systemd(object): # configuration file, that gets passed to the cgconfigparser tool to # create systemd slice/scope. @staticmethod - def write_config_with_pid(config, config_fname, _slice, scope, setdefault="yes"): + def write_config_with_pid(config, config_fname, _slice, scope, setdefault='yes'): pid = config.process.create_process(config) - config_file = '''systemd {{ + config_file = """systemd {{ slice = {}; scope = {}; setdefault = {}; pid = {}; - }}'''.format(_slice, scope, setdefault, pid) + }}""".format(_slice, scope, setdefault, pid) f = open(config_fname, 'w') f.write(config_file) -- 2.47.3