pre-upload: Exclude generated python protobuf files

BUG=chromium:912361
TEST=manual: repo upload with generated file didn't lint

Change-Id: I81b0a6ee4559450f630882f7ae54897b9337bbcc
Reviewed-on: https://chromium-review.googlesource.com/1448873
Commit-Ready: Alex Klein <saklein@chromium.org>
Tested-by: Alex Klein <saklein@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
diff --git a/pre-upload.py b/pre-upload.py
index 5cd9414..e9b1f06 100755
--- a/pre-upload.py
+++ b/pre-upload.py
@@ -83,6 +83,9 @@
 
     # Ignore license files as the content is often taken verbatim.
     r".*/licenses/.*",
+
+    # Exclude generated python protobuf files.
+    r".*_pb2\.py$",
 ]
 
 LICENSE_EXCLUDED_PATHS = [