Skip to content

Commit

Permalink
update python scripts to python3 (#96)
Browse files Browse the repository at this point in the history
Signed-off-by: kranurag7 <[email protected]>
Co-authored-by: Roman Hros <[email protected]>
  • Loading branch information
kranurag7 and chess-knight authored Mar 28, 2024
1 parent 17f8eb4 commit ab93fe5
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 43 deletions.
2 changes: 1 addition & 1 deletion hack/boilerplate/boilerplate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright 2015 The Kubernetes Authors.
#
Expand Down
2 changes: 1 addition & 1 deletion hack/boilerplate/boilerplate.py.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright YEAR The Kubernetes Authors.
#
Expand Down
4 changes: 2 additions & 2 deletions hack/boilerplate/boilerplate_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright 2016 The Kubernetes Authors.
#
Expand Down Expand Up @@ -40,7 +40,7 @@ class TestBoilerplate(unittest.TestCase):
"""
Note: run this test from the inside the boilerplate directory.
$ python -m unittest boilerplate_test
$ python3 -m unittest boilerplate_test
"""

def setUp(self):
Expand Down
19 changes: 1 addition & 18 deletions hack/boilerplate/testdata/default/fail.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright 2023 The Kubernetes Authors.
#
Expand All @@ -14,20 +14,3 @@
# See the License for the specific language governing permissions and
# limitations under the License.

#!/usr/bin/env python

# Copyright 2015 The Kubernetes Authors.
#
# failed
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
2 changes: 1 addition & 1 deletion hack/boilerplate/testdata/default/pass.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright 2015 The Kubernetes Authors.
#
Expand Down
21 changes: 2 additions & 19 deletions hack/boilerplate/testdata/with_config/fail.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright 2023 The Kubernetes Authors.
# Copyright 2024 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -14,20 +14,3 @@
# See the License for the specific language governing permissions and
# limitations under the License.

#!/usr/bin/env python

# Copyright 2015 The Kubernetes Authors.
#
# failed
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
2 changes: 1 addition & 1 deletion hack/boilerplate/testdata/with_config/pass.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright 2015 The Kubernetes Authors.
#
Expand Down

0 comments on commit ab93fe5

Please sign in to comment.