Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Linusp committed Dec 13, 2023
1 parent 3ffc52c commit d0a6ee7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions inoreader/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def list_tags():

@main.command("fetch-unread")
@click.option("-f", "--folder", required=True, help='Folder which articles belong to')
@click.option("-t", "--tags", help="Tag(s) for filtering, seprate with comma")
@click.option("-t", "--tags", help="Tag(s) for filtering, separate with comma")
@click.option("-o", "--outfile", required=True, help="Filename to save articles")
@click.option(
"--out-format",
Expand Down Expand Up @@ -270,7 +270,7 @@ def apply_action(articles, client, action, tags):
elif action == 'broadcast':
client.broadcast(articles)
for article in articles:
LOGGER.info("Boradcast article: %s", article.title)
LOGGER.info("Broadcast article: %s", article.title)
elif action == 'star':
client.mark_as_starred(articles)
for article in articles:
Expand Down Expand Up @@ -468,7 +468,7 @@ def dedupe(folder, thresh):

@main.command("fetch-starred")
@click.option("-f", "--folder", help='Folder which articles belong to')
@click.option("-t", "--tags", help="Tag(s) for filtering, seprate with comma")
@click.option("-t", "--tags", help="Tag(s) for filtering, separate with comma")
@click.option(
"-o", "--outfile", help="Filename to save articles, required when output format is `csv`"
)
Expand Down
4 changes: 2 additions & 2 deletions inoreader/sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ def make_terms(text, term, ngram_range=None, lower=True, ignore_punct=True, gram
elif term == 'char':
term_seq = list(re.sub(r'\s', '', text))
else:
raise ValueError("unsupported term type: {}".foramt(term))
raise ValueError(f"unsupported term type: {term}")

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

terms = []
min_ngram, max_ngram = ngram_range or (1, 2)
Expand Down

0 comments on commit d0a6ee7

Please sign in to comment.