Skip to content

Commit

Permalink
Rename echo function to print_errors
Browse files Browse the repository at this point in the history
  • Loading branch information
suchow committed Apr 4, 2016
1 parent 85509ab commit 15ab97e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proselint/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def clear_cache():
shell=True)


def show_errors(filename, errors, output_json=False, compact=False):
def print_errors(filename, errors, output_json=False, compact=False):
"""Print the errors, resulting from lint, for filename."""
if output_json:
click.echo(errors_to_json(errors))
Expand Down Expand Up @@ -150,7 +150,7 @@ def proselint(paths=None, version=None, clean=None, debug=None, score=None,
f = click.open_file(fp, 'r+', encoding="utf-8")
errors = lint(f, debug=debug)
num_errors += len(errors)
show_errors(fp, errors, output_json, compact=compact)
print_errors(fp, errors, output_json, compact=compact)
except:
pass

Expand Down

0 comments on commit 15ab97e

Please sign in to comment.