Skip to content

Commit ffc39ca

Browse files
committed
fix: remove f-string for Python 2
1 parent 349a627 commit ffc39ca

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

liccheck/command_line.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,10 @@ def check_package(strategy, pkg, level=Level.STANDARD, as_regex=False):
215215

216216
def check_one(license_str, license_rule="AUTHORIZED", as_regex=False):
217217
if as_regex:
218-
license_regex = getattr(strategy, f"{license_rule}_REGEX")
218+
license_regex = getattr(strategy, "{}_REGEX".format(license_rule))
219219
return license_regex.search(license_str) is not None
220220
else:
221-
license_list = getattr(strategy, f"{license_rule}_LICENSES")
221+
license_list = getattr(strategy, "{}_LICENSES".format(license_rule))
222222
return license_str in license_list
223223

224224
at_least_one_unauthorized = False

0 commit comments

Comments
 (0)