Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit ab93fe5

Browse files
update python scripts to python3 (#96)
Signed-off-by: kranurag7 <[email protected]> Co-authored-by: Roman Hros <[email protected]>
1 parent 17f8eb4 commit ab93fe5

File tree

7 files changed

+9
-43
lines changed

7 files changed

+9
-43
lines changed

hack/boilerplate/boilerplate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# Copyright 2015 The Kubernetes Authors.
44
#

hack/boilerplate/boilerplate.py.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# Copyright YEAR The Kubernetes Authors.
44
#

hack/boilerplate/boilerplate_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# Copyright 2016 The Kubernetes Authors.
44
#
@@ -40,7 +40,7 @@ class TestBoilerplate(unittest.TestCase):
4040
"""
4141
Note: run this test from the inside the boilerplate directory.
4242
43-
$ python -m unittest boilerplate_test
43+
$ python3 -m unittest boilerplate_test
4444
"""
4545

4646
def setUp(self):
Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# Copyright 2023 The Kubernetes Authors.
44
#
@@ -14,20 +14,3 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
#!/usr/bin/env python
18-
19-
# Copyright 2015 The Kubernetes Authors.
20-
#
21-
# failed
22-
#
23-
# Licensed under the Apache License, Version 2.0 (the "License");
24-
# you may not use this file except in compliance with the License.
25-
# You may obtain a copy of the License at
26-
#
27-
# http://www.apache.org/licenses/LICENSE-2.0
28-
#
29-
# Unless required by applicable law or agreed to in writing, software
30-
# distributed under the License is distributed on an "AS IS" BASIS,
31-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32-
# See the License for the specific language governing permissions and
33-
# limitations under the License.

hack/boilerplate/testdata/default/pass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# Copyright 2015 The Kubernetes Authors.
44
#
Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

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

17-
#!/usr/bin/env python
18-
19-
# Copyright 2015 The Kubernetes Authors.
20-
#
21-
# failed
22-
#
23-
# Licensed under the Apache License, Version 2.0 (the "License");
24-
# you may not use this file except in compliance with the License.
25-
# You may obtain a copy of the License at
26-
#
27-
# http://www.apache.org/licenses/LICENSE-2.0
28-
#
29-
# Unless required by applicable law or agreed to in writing, software
30-
# distributed under the License is distributed on an "AS IS" BASIS,
31-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32-
# See the License for the specific language governing permissions and
33-
# limitations under the License.

hack/boilerplate/testdata/with_config/pass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# Copyright 2015 The Kubernetes Authors.
44
#

0 commit comments

Comments
 (0)