Browse Source

fix cmd recommend to use f string

expiry-test
Kevin Froman 1 year ago
parent
commit
8649231860
3 changed files with 2 additions and 3 deletions
  1. +1
    -1
      src/onionrcommands/parser/recommend.py
  2. +1
    -1
      tests/runtime-result.txt
  3. +0
    -1
      tests/test_runtime_result.py

+ 1
- 1
src/onionrcommands/parser/recommend.py View File

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


+ 1
- 1
tests/runtime-result.txt View File

@ -1 +1 @@
1580360691
1580361700

+ 0
- 1
tests/test_runtime_result.py View File

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

Loading…
Cancel
Save