diff --git a/cluster-autoscaler/update_toc.py b/cluster-autoscaler/update_toc.py index 4af4664f2398675f520daa2f5d67727cb9f912f4..34a7d2639b5167bdf2549a4c5653a5ad5f2d35fd 100755 --- a/cluster-autoscaler/update_toc.py +++ b/cluster-autoscaler/update_toc.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright 2017 The Kubernetes Authors. # diff --git a/hack/boilerplate/boilerplate.py b/hack/boilerplate/boilerplate.py index f12dfeeffd4b6a292bf174685b40a8a13783d73c..9c374c4c046971e1fa5259f4c8b79e6c738d80bf 100755 --- a/hack/boilerplate/boilerplate.py +++ b/hack/boilerplate/boilerplate.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright 2015 The Kubernetes Authors. # diff --git a/hack/boilerplate/boilerplate.py.txt b/hack/boilerplate/boilerplate.py.txt index a2e72e5988e73d67bc84e088133ffa0b041998cd..9fdb989ce7c5b32e3880a8dd78a17dfdfe2e8185 100644 --- a/hack/boilerplate/boilerplate.py.txt +++ b/hack/boilerplate/boilerplate.py.txt @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright YEAR The Kubernetes Authors. # diff --git a/hack/scripts/break_mig.py b/hack/scripts/break_mig.py index 53858892d590d7b7ee8d89d946ca69d7c56a421d..f487ce2c591170e09b9deb709a1665eee041d30d 100755 --- a/hack/scripts/break_mig.py +++ b/hack/scripts/break_mig.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright 2017 The Kubernetes Authors. # @@ -41,11 +41,6 @@ import subprocess import sys import time -try: - range = xrange # Python 2 -except NameError: # Python 3 - pass - InstanceInfo = collections.namedtuple("InstanceInfo", 'name ip') diff --git a/hack/scripts/ca_metrics_parser.py b/hack/scripts/ca_metrics_parser.py index 155bdbef6fb04f225c0c24f97bda722b042a35ac..51083c0d74ec7638ecd38e91b9ba913b18b78fdc 100755 --- a/hack/scripts/ca_metrics_parser.py +++ b/hack/scripts/ca_metrics_parser.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright 2017 The Kubernetes Authors. # @@ -22,11 +22,6 @@ from __future__ import print_function import argparse import json -try: - range = xrange # Python 2 -except NameError: # Python 3 - pass - class CAMetric(object):