diff options
author | Arif Ali <arif.ali@canonical.com> | 2024-04-19 11:20:53 +0100 |
---|---|---|
committer | Jake Hunsaker <jacob.r.hunsaker@gmail.com> | 2024-04-26 22:03:05 -0400 |
commit | d65e135c8d5dbf75a0dc05427e9a4f777bcbf383 (patch) | |
tree | 583230dd2b07fc12f0d8b14ff75fe5a5e75c41a6 /plugins_overview.py | |
parent | d60a68bdb40e010077d19956d1536526902bd20d (diff) | |
download | sos-d65e135c8d5dbf75a0dc05427e9a4f777bcbf383.tar.gz |
[pylint] Convert remaining content to f-strings
Signed-off-by: Arif Ali <arif.ali@canonical.com>
Diffstat (limited to 'plugins_overview.py')
-rw-r--r-- | plugins_overview.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins_overview.py b/plugins_overview.py index fcd0d9d6..520cf300 100644 --- a/plugins_overview.py +++ b/plugins_overview.py @@ -45,7 +45,7 @@ def add_valid_item(dest, item): # method to find in `plugcontent` all items of given method (a_c_s/a_c_o/..) # split by comma; add each valid item to the `dest` list def add_all_items(method, dest, wrapopen=r'\(', wrapclose=r'\)'): - regexp = "%s%s(.*?)%s" % (method, wrapopen, wrapclose) + regexp = f"{method}{wrapopen}(.*?){wrapclose}" for match in re.findall(regexp, plugcontent, flags=re.MULTILINE | re.DOTALL): # tuple of distros ended by either (class|from|import) if isinstance(match, tuple): |