diff --git a/cluster-autoscaler/update_toc.py b/cluster-autoscaler/update_toc.py index 4af4664f2398..34a7d2639b51 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 f12dfeeffd4b..9c374c4c0469 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 a2e72e5988e7..9fdb989ce7c5 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 53858892d590..f487ce2c5911 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 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 155bdbef6fb0..51083c0d74ec 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 @@ import argparse import json -try: - range = xrange # Python 2 -except NameError: # Python 3 - pass - class CAMetric(object):