Skip to content

Commit

Permalink
Drop no-else-return from pylint disable
Browse files Browse the repository at this point in the history
  • Loading branch information
avylove committed Jul 24, 2018
1 parent a023f51 commit 78a4663
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ variable-rgx=[a-z_][A-Za-z0-9]{1,29}[A-Za-z0-9_]$

[MESSAGES CONTROL]
disable=
no-else-return,
useless-object-inheritance

[SPELLING]
Expand Down
5 changes: 2 additions & 3 deletions setup_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ def print_spelling_errors(filename, encoding='utf8'):
with io.open(filename, encoding=encoding) as wordlist:
for line in wordlist:
sys.stdout.write(' ' + line)
return 1
else:
return 0

return 1 if filesize else 0


if __name__ == '__main__':
Expand Down

0 comments on commit 78a4663

Please sign in to comment.