Skip to content

Commit

Permalink
Fix newline after printing "No issues detected" during check mode
Browse files Browse the repository at this point in the history
In check mode, we print "No issue detected" after checking a file, and if that file contains no errors. This leads to lines like:

No issues detected!No issues detected!No issues detected!

Add a \n to make this slightly better.
  • Loading branch information
sargun committed May 28, 2019
1 parent 68fea68 commit 2b26007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ def fix_file(filename, args, standard_out):
standard_out.write(''.join(diff))
else:
if args.check:
standard_out.write('No issues detected!')
standard_out.write('No issues detected!\n')


def open_with_encoding(filename, encoding, mode='r',
Expand Down

0 comments on commit 2b26007

Please sign in to comment.