Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
myint committed Oct 12, 2017
1 parent daa4975 commit 480f728
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pyformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@ def _main(argv, standard_out, standard_error):
file=standard_error)
return 2

changed_and_error = format_multiple_files(set(args.files),
args,
standard_out,
standard_error)
changed_and_error = format_multiple_files(set(args.files),
args,
standard_out,
standard_error)
return 1 if changed_and_error[1] else 0


Expand Down
2 changes: 1 addition & 1 deletion test_pyformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_format_code_with_remove_all_unused_imports(self):

def test_format_code_with_remove_unused_variables(self):
self.assertEqual(
"def test():\n return 42\n",
'def test():\n return 42\n',
pyformat.format_code(
'def test():\n x = 4\n return 42',
aggressive=True,
Expand Down

0 comments on commit 480f728

Please # to comment.