Skip to content
Permalink
Browse files

scripts: last space/blank line issues detected by flake8

  • Loading branch information...
antonv6 committed Aug 1, 2018
1 parent 566b742 commit 5ba03f39c50b074b23c478ca00bf75fe8fcbbb62
Showing with 2 additions and 2 deletions.
  1. +1 −1 scripts/check_language_files_not_BOM.py
  2. +1 −1 scripts/check_trailing_whitespaces.py
@@ -15,7 +15,7 @@

def is_BOM_encoded_file(path):
""" Returns whether |path| is a file that is encoded in UTF-8 with BOM. """
if not os.path.isfile(path):
if not os.path.isfile(path):
return False

with open(path, 'rb') as f:
@@ -14,6 +14,7 @@

TRAILING_SEQUENCE = re.compile(r'[ \t][\r\n]')


def has_trailing_whitespace(path):
""" Returns whether |path| has trailing whitespace. """
if os.path.isfile(path):
@@ -26,7 +27,6 @@ def has_trailing_whitespace(path):
return False



if len(sys.argv) > 2:
sys.exit('Usage: {} [root]'.format(sys.argv[0]))

0 comments on commit 5ba03f3

Please sign in to comment.
You can’t perform that action at this time.