Skip to content

Commit 0c294c4

Browse files
committed
fix typo
1 parent 7bb7e3f commit 0c294c4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

inoreader/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def list_tags():
199199

200200
@main.command("fetch-unread")
201201
@click.option("-f", "--folder", required=True, help='Folder which articles belong to')
202-
@click.option("-t", "--tags", help="Tag(s) for filtering, seprate with comma")
202+
@click.option("-t", "--tags", help="Tag(s) for filtering, separate with comma")
203203
@click.option("-o", "--outfile", required=True, help="Filename to save articles")
204204
@click.option(
205205
"--out-format",
@@ -270,7 +270,7 @@ def apply_action(articles, client, action, tags):
270270
elif action == 'broadcast':
271271
client.broadcast(articles)
272272
for article in articles:
273-
LOGGER.info("Boradcast article: %s", article.title)
273+
LOGGER.info("Broadcast article: %s", article.title)
274274
elif action == 'star':
275275
client.mark_as_starred(articles)
276276
for article in articles:
@@ -468,7 +468,7 @@ def dedupe(folder, thresh):
468468

469469
@main.command("fetch-starred")
470470
@click.option("-f", "--folder", help='Folder which articles belong to')
471-
@click.option("-t", "--tags", help="Tag(s) for filtering, seprate with comma")
471+
@click.option("-t", "--tags", help="Tag(s) for filtering, separate with comma")
472472
@click.option(
473473
"-o", "--outfile", help="Filename to save articles, required when output format is `csv`"
474474
)

inoreader/sim.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def make_terms(text, term, ngram_range=None, lower=True, ignore_punct=True, gram
2222
elif term == 'char':
2323
term_seq = list(re.sub(r'\s', '', text))
2424
else:
25-
raise ValueError("unsupported term type: {}".foramt(term))
25+
raise ValueError(f"unsupported term type: {term}")
2626

2727
if ngram_range and not (len(ngram_range) == 2 and ngram_range[0] < ngram_range[1]):
28-
raise ValueError("wrong `ngram_range`: {}".foramt(ngram_range))
28+
raise ValueError(f"wrong `ngram_range`: {ngram_range}")
2929

3030
terms = []
3131
min_ngram, max_ngram = ngram_range or (1, 2)

0 commit comments

Comments
 (0)