From: Kamalesh Babulal Date: Mon, 12 Aug 2024 06:29:04 +0000 (+0530) Subject: ftests/cgroup: Fix quote warnings X-Git-Tag: v3.2.0~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b6ad36579dde4c6d1251a60437b51aac68d67ce;p=thirdparty%2Flibcgroup.git ftests/cgroup: Fix quote warnings Fix "Q003 Change outer quotes to avoid escaping inner quotes" and "Q000 Double quotes found but single quotes preferred" warnings. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- diff --git a/tests/ftests/cgroup.py b/tests/ftests/cgroup.py index 444f50a2..828e7e3a 100644 --- a/tests/ftests/cgroup.py +++ b/tests/ftests/cgroup.py @@ -630,7 +630,7 @@ class Cgroup(object): if re.ret == 0 and \ 'neither deny nor allow list' in re.stderr: res = re.stdout - elif re.ret == 0 and 'ERROR: can\'t get' in re.stderr: + elif re.ret == 0 and "ERROR: can\'t get" in re.stderr: res = re.stdout else: raise (re) @@ -1179,7 +1179,7 @@ class Cgroup(object): # all of the controllers exist, Yippee return True else: - raise ValueError("Unsupported type: {}".format(type(ctrl_name))) + raise ValueError('Unsupported type: {}'.format(type(ctrl_name))) # Method to enable or disable controllers in the subtree control file @staticmethod