diff --git a/test/core/end2end/gen_build_yaml.py b/test/core/end2end/gen_build_yaml.py index b11335e2f08..01adcf389eb 100755 --- a/test/core/end2end/gen_build_yaml.py +++ b/test/core/end2end/gen_build_yaml.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2.7 # Copyright 2015 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -16,6 +15,7 @@ """Generates the appropriate build.json data for all the end2end tests.""" +from __future__ import print_function import yaml import collections @@ -405,7 +405,7 @@ def main(): for t in END2END_TESTS.keys() ) } - print yaml.dump(json) + print(yaml.dump(json)) if __name__ == '__main__': diff --git a/tools/buildgen/generate_build_additions.sh b/tools/buildgen/generate_build_additions.sh index e072752355f..b1246c13fbe 100755 --- a/tools/buildgen/generate_build_additions.sh +++ b/tools/buildgen/generate_build_additions.sh @@ -33,6 +33,6 @@ gen_build_files="" for gen_build_yaml in $gen_build_yaml_dirs do output_file=`mktemp /tmp/genXXXXXX` - $gen_build_yaml/gen_build_yaml.py > $output_file + python $gen_build_yaml/gen_build_yaml.py > $output_file gen_build_files="$gen_build_files $output_file" done diff --git a/tools/buildgen/generate_projects.py b/tools/buildgen/generate_projects.py index 40d90953606..bbbf1271aba 100755 --- a/tools/buildgen/generate_projects.py +++ b/tools/buildgen/generate_projects.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python2.7 - # Copyright 2015 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/buildgen/generate_projects.sh b/tools/buildgen/generate_projects.sh index 95969c8a340..fa0a4d82092 100755 --- a/tools/buildgen/generate_projects.sh +++ b/tools/buildgen/generate_projects.sh @@ -30,6 +30,6 @@ fi . tools/buildgen/generate_build_additions.sh -tools/buildgen/generate_projects.py build.yaml $gen_build_files $* +python tools/buildgen/generate_projects.py build.yaml $gen_build_files $* rm $gen_build_files