grit: strip trailing blank lines
Newer pylint warns when files have trailing blank lines. Trim them.
Bug: 866772
Change-Id: Iacfd1dcb0eb16d33aa5cf382aecb5b1dd4e7efa7
Reviewed-on: https://chromium-review.googlesource.com/1147717
Commit-Queue: Nico Weber <thakis@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577512}
diff --git a/tools/grit/grit.py b/tools/grit/grit.py
index b17ceb9..2813b93 100755
--- a/tools/grit/grit.py
+++ b/tools/grit/grit.py
@@ -13,4 +13,3 @@
if __name__ == '__main__':
grit.grit_runner.Main(sys.argv[1:])
-
diff --git a/tools/grit/grit/__init__.py b/tools/grit/grit/__init__.py
index 57e6709..a1eeaca 100755
--- a/tools/grit/grit/__init__.py
+++ b/tools/grit/grit/__init__.py
@@ -7,4 +7,3 @@
'''
pass
-
diff --git a/tools/grit/grit/clique.py b/tools/grit/grit/clique.py
index 7d920a8..7607e5d 100755
--- a/tools/grit/grit/clique.py
+++ b/tools/grit/grit/clique.py
@@ -483,4 +483,3 @@
language, transl_msg.GetId())
self.clique[language] = transl_msg
-
diff --git a/tools/grit/grit/extern/tclib.py b/tools/grit/grit/extern/tclib.py
index e84f177e..a9b1a39f 100755
--- a/tools/grit/grit/extern/tclib.py
+++ b/tools/grit/grit/extern/tclib.py
@@ -500,4 +500,3 @@
Returns a copy of this Translation.
"""
return Translation(None, clone_from=self)
-
diff --git a/tools/grit/grit/format/__init__.py b/tools/grit/grit/format/__init__.py
index 2a3c59ca..28a4dc7 100755
--- a/tools/grit/grit/format/__init__.py
+++ b/tools/grit/grit/format/__init__.py
@@ -7,4 +7,3 @@
'''
pass
-
diff --git a/tools/grit/grit/gather/regexp.py b/tools/grit/grit/gather/regexp.py
index 30488a6..16bc323a 100755
--- a/tools/grit/grit/gather/regexp.py
+++ b/tools/grit/grit/gather/regexp.py
@@ -82,4 +82,3 @@
if self.single_message_:
self.skeleton_.append(self.uberclique.MakeClique(self.single_message_))
-
diff --git a/tools/grit/grit/gather/tr_html.py b/tools/grit/grit/gather/tr_html.py
index 3487251..d5122f6e 100755
--- a/tools/grit/grit/gather/tr_html.py
+++ b/tools/grit/grit/gather/tr_html.py
@@ -742,4 +742,3 @@
continue
new_skel.append(chunk)
self.skeleton_ = new_skel
-
diff --git a/tools/grit/grit/gather/txt_unittest.py b/tools/grit/grit/gather/txt_unittest.py
index e2ff8a5..80586526 100755
--- a/tools/grit/grit/gather/txt_unittest.py
+++ b/tools/grit/grit/gather/txt_unittest.py
@@ -31,4 +31,3 @@
if __name__ == '__main__':
unittest.main()
-
diff --git a/tools/grit/grit/node/base.py b/tools/grit/grit/node/base.py
index e40bad8..76fbb31e 100755
--- a/tools/grit/grit/node/base.py
+++ b/tools/grit/grit/node/base.py
@@ -621,4 +621,3 @@
'''Convenience baseclass for nodes that can have content.'''
def _ContentType(self):
return self._CONTENT_TYPE_MIXED
-
diff --git a/tools/grit/grit/node/base_unittest.py b/tools/grit/grit/node/base_unittest.py
index f7e7b75..58acdfb 100755
--- a/tools/grit/grit/node/base_unittest.py
+++ b/tools/grit/grit/node/base_unittest.py
@@ -255,4 +255,3 @@
if __name__ == '__main__':
unittest.main()
-
diff --git a/tools/grit/grit/node/custom/filename_unittest.py b/tools/grit/grit/node/custom/filename_unittest.py
index 9099086..9ea8eb9 100755
--- a/tools/grit/grit/node/custom/filename_unittest.py
+++ b/tools/grit/grit/node/custom/filename_unittest.py
@@ -31,4 +31,3 @@
if __name__ == '__main__':
unittest.main()
-
diff --git a/tools/grit/grit/node/io.py b/tools/grit/grit/node/io.py
index 6914619..83e14b1f 100755
--- a/tools/grit/grit/node/io.py
+++ b/tools/grit/grit/node/io.py
@@ -116,4 +116,3 @@
def GetEmitType(self):
'''Returns the emit_type for this node. Default is 'append'.'''
return self.attrs['emit_type']
-
diff --git a/tools/grit/grit/node/mapping.py b/tools/grit/grit/node/mapping.py
index 259be97..71b250b2 100755
--- a/tools/grit/grit/node/mapping.py
+++ b/tools/grit/grit/node/mapping.py
@@ -58,4 +58,3 @@
if name not in _ELEMENT_TO_CLASS:
raise exception.UnknownElement()
return _ELEMENT_TO_CLASS[name]
-
diff --git a/tools/grit/grit/node/structure.py b/tools/grit/grit/node/structure.py
index 7b6f7bf..3d2012a 100755
--- a/tools/grit/grit/node/structure.py
+++ b/tools/grit/grit/node/structure.py
@@ -356,4 +356,3 @@
assert hasattr(self, 'gatherer')
if self.ExpandVariables():
self.gatherer.SubstituteMessages(substituter)
-
diff --git a/tools/grit/grit/node/variant.py b/tools/grit/grit/node/variant.py
index 4206712b..487f7f9 100755
--- a/tools/grit/grit/node/variant.py
+++ b/tools/grit/grit/node/variant.py
@@ -39,4 +39,3 @@
def GetInputPath(self):
return self.attrs['file']
-
diff --git a/tools/grit/grit/pseudo.py b/tools/grit/grit/pseudo.py
index 17a6ec6a..cb57daab 100755
--- a/tools/grit/grit/pseudo.py
+++ b/tools/grit/grit/pseudo.py
@@ -125,4 +125,3 @@
transl.AppendText(PseudoString(part))
return transl
-
diff --git a/tools/grit/grit/shortcuts.py b/tools/grit/grit/shortcuts.py
index 69a4386d..30bdbf7 100755
--- a/tools/grit/grit/shortcuts.py
+++ b/tools/grit/grit/shortcuts.py
@@ -90,4 +90,3 @@
for group in groups.values():
warnings += group.GenerateWarnings(tc_project)
return warnings
-
diff --git a/tools/grit/grit/shortcuts_unittests.py b/tools/grit/grit/shortcuts_unittests.py
index 421cfb2..b7c37b5 100755
--- a/tools/grit/grit/shortcuts_unittests.py
+++ b/tools/grit/grit/shortcuts_unittests.py
@@ -77,4 +77,3 @@
if __name__ == '__main__':
unittest.main()
-
diff --git a/tools/grit/grit/tool/__init__.py b/tools/grit/grit/tool/__init__.py
index c8565d5..4f769f2a 100755
--- a/tools/grit/grit/tool/__init__.py
+++ b/tools/grit/grit/tool/__init__.py
@@ -7,4 +7,3 @@
'''
pass
-
diff --git a/tools/grit/grit/tool/android2grd.py b/tools/grit/grit/tool/android2grd.py
index c0538ed..e9e0ed1 100755
--- a/tools/grit/grit/tool/android2grd.py
+++ b/tools/grit/grit/tool/android2grd.py
@@ -476,4 +476,3 @@
return value == 'true'
else:
return True
-
diff --git a/tools/grit/grit/tool/count.py b/tools/grit/grit/tool/count.py
index e87c4900..1517b16 100755
--- a/tools/grit/grit/tool/count.py
+++ b/tools/grit/grit/tool/count.py
@@ -32,4 +32,3 @@
count += 1
print "There are %d occurrences of message %s." % (count, id)
-
diff --git a/tools/grit/grit/tool/menu_from_parts.py b/tools/grit/grit/tool/menu_from_parts.py
index 36d2d40..c7be7bd9 100755
--- a/tools/grit/grit/tool/menu_from_parts.py
+++ b/tools/grit/grit/tool/menu_from_parts.py
@@ -76,4 +76,3 @@
with util.WrapOutputStream(open(output_file, 'w')) as f:
transl2tc.TranslationToTc.WriteTranslations(f, translations)
-
diff --git a/tools/grit/grit/tool/postprocess_interface.py b/tools/grit/grit/tool/postprocess_interface.py
index 4a43254..c870b932 100755
--- a/tools/grit/grit/tool/postprocess_interface.py
+++ b/tools/grit/grit/tool/postprocess_interface.py
@@ -27,6 +27,3 @@
The root node of the processed GRD tree.
'''
raise NotImplementedError()
-
-
-
diff --git a/tools/grit/grit/tool/postprocess_unittest.py b/tools/grit/grit/tool/postprocess_unittest.py
index 330db490..91f02d69 100755
--- a/tools/grit/grit/tool/postprocess_unittest.py
+++ b/tools/grit/grit/tool/postprocess_unittest.py
@@ -60,4 +60,3 @@
if __name__ == '__main__':
unittest.main()
-
diff --git a/tools/grit/grit/tool/preprocess_interface.py b/tools/grit/grit/tool/preprocess_interface.py
index 4c5456c6..eea10b2 100755
--- a/tools/grit/grit/tool/preprocess_interface.py
+++ b/tools/grit/grit/tool/preprocess_interface.py
@@ -23,6 +23,3 @@
The processed text.
'''
raise NotImplementedError()
-
-
-
diff --git a/tools/grit/grit/tool/preprocess_unittest.py b/tools/grit/grit/tool/preprocess_unittest.py
index 1fc7192..da4242b 100755
--- a/tools/grit/grit/tool/preprocess_unittest.py
+++ b/tools/grit/grit/tool/preprocess_unittest.py
@@ -46,4 +46,3 @@
if __name__ == '__main__':
unittest.main()
-
diff --git a/tools/grit/grit/tool/rc2grd.py b/tools/grit/grit/tool/rc2grd.py
index 10d36f60..a0ef77fc 100755
--- a/tools/grit/grit/tool/rc2grd.py
+++ b/tools/grit/grit/tool/rc2grd.py
@@ -406,4 +406,3 @@
except:
print 'Exception processing message with text "%s"' % text
raise
-
diff --git a/tools/grit/grit/tool/rc2grd_unittest.py b/tools/grit/grit/tool/rc2grd_unittest.py
index b41f5e43..0e48f07f 100755
--- a/tools/grit/grit/tool/rc2grd_unittest.py
+++ b/tools/grit/grit/tool/rc2grd_unittest.py
@@ -134,4 +134,3 @@
if __name__ == '__main__':
unittest.main()
-
diff --git a/tools/grit/grit/tool/test.py b/tools/grit/grit/tool/test.py
index 246b3de..8f4cdd9 100755
--- a/tools/grit/grit/tool/test.py
+++ b/tools/grit/grit/tool/test.py
@@ -21,4 +21,3 @@
print 'Options: %s' % repr(global_options)
print 'Arguments: %s' % repr(my_arguments)
return 0
-
diff --git a/tools/grit/grit/tool/transl2tc.py b/tools/grit/grit/tool/transl2tc.py
index f3f06a9..a8af6ed1 100755
--- a/tools/grit/grit/tool/transl2tc.py
+++ b/tools/grit/grit/tool/transl2tc.py
@@ -249,4 +249,3 @@
output_file.write(' ')
output_file.write(text)
output_file.write('\n')
-
diff --git a/tools/grit/grit/util_unittest.py b/tools/grit/grit/util_unittest.py
index 03f8cfe..ecadfa3c 100755
--- a/tools/grit/grit/util_unittest.py
+++ b/tools/grit/grit/util_unittest.py
@@ -116,4 +116,3 @@
if __name__ == '__main__':
unittest.main()
-
diff --git a/tools/grit/grit/xtb_reader.py b/tools/grit/grit/xtb_reader.py
index b92da39e..df6d9f8 100755
--- a/tools/grit/grit/xtb_reader.py
+++ b/tools/grit/grit/xtb_reader.py
@@ -138,4 +138,3 @@
xml.sax.parse(xtb_file, handler)
assert handler.language != ''
return handler.language
-