Skip to content

Commit

Permalink
Merge pull request #4734 from jayantjain93/python-3-migration
Browse files Browse the repository at this point in the history
Migrate CA off python2 to python3
  • Loading branch information
k8s-ci-robot authored Mar 14, 2022
2 parents b918283 + cd6572e commit 6126b24
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion cluster-autoscaler/update_toc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright 2017 The Kubernetes Authors.
#
Expand Down
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
7 changes: 1 addition & 6 deletions hack/scripts/break_mig.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright 2017 The Kubernetes Authors.
#
Expand Down Expand Up @@ -41,11 +41,6 @@
import sys
import time

try:
range = xrange # Python 2
except NameError: # Python 3
pass


InstanceInfo = collections.namedtuple("InstanceInfo", 'name ip')

Expand Down
7 changes: 1 addition & 6 deletions hack/scripts/ca_metrics_parser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright 2017 The Kubernetes Authors.
#
Expand All @@ -22,11 +22,6 @@
import argparse
import json

try:
range = xrange # Python 2
except NameError: # Python 3
pass


class CAMetric(object):

Expand Down

0 comments on commit 6126b24

Please sign in to comment.