fix cmd recommend to use f string

master
Kevin Froman 2020-01-29 23:21:13 -06:00
parent d4c1dc2bf2
commit 8649231860
3 changed files with 2 additions and 3 deletions

View File

@ -31,7 +31,7 @@ def recommend(print_default: bool = True):
for word in key: for word in key:
if SequenceMatcher(None, tried, word).ratio() >= 0.75: if SequenceMatcher(None, tried, word).ratio() >= 0.75:
logger.warn(f'{print_message} "{tried}", ' logger.warn(f'{print_message} "{tried}", '
+ 'did you mean "{word}"?', + f'did you mean "{word}"?',
terminal=True) terminal=True)
return return
if print_default: if print_default:

View File

@ -1 +1 @@
1580360691 1580361700

View File

@ -22,5 +22,4 @@ class TestRuntimeFile(unittest.TestCase):
self.assertLess(math.floor(time.time()) - int(result_file.read()), 1800) self.assertLess(math.floor(time.time()) - int(result_file.read()), 1800)
unittest.main() unittest.main()