Fix Python shebang and license for presubmit_test.py

This was missed during review of https://codereview.webrtc.org/3010153002
Having python2 in the shebang makes it fail presubmit locally on Mac.

Disable 'invalid-name' PyLint rule in 3 places to pass presubmit.

NOTRY=True
NOTREECHECKS=True
TBR=charujain@webrtc.org

Bug: none
Change-Id: I85cc5783ba11774792cd8c2f6c0b4ff47ad89270
Reviewed-on: https://webrtc-review.googlesource.com/1566
Commit-Queue: Henrik Kjellander <kjellander@webrtc.org>
Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
Reviewed-by: Henrik Kjellander <kjellander@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19850}
This commit is contained in:
Henrik Kjellander 2017-09-15 11:19:10 +02:00 committed by Commit Bot
parent 5a6aa4f05d
commit a18a3bf8d6
2 changed files with 11 additions and 2 deletions

View file

@ -1,4 +1,13 @@
#!/usr/bin/env python2
#!/usr/bin/env python
# Copyright 2017 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.
import unittest
import PRESUBMIT
@ -37,4 +46,3 @@ class CheckBugEntryField(unittest.TestCase):
if __name__ == '__main__':
unittest.main()

View file

@ -27,6 +27,7 @@ disable=
exec-used,
fixme,
import-error,
invalid-name,
missing-docstring,
no-init,
no-member,