From da4f3629c5cca7261c68a53fa127c26f5c991742 Mon Sep 17 00:00:00 2001 From: Hong Xu Date: Thu, 6 Jun 2019 10:35:49 -0700 Subject: [PATCH] Add missing shebangs to Python files with executable permissions. Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/21305 Differential Revision: D15613078 Pulled By: ezyang fbshipit-source-id: 1fedf4368d65db406b617a51402ee8a20968aff7 --- .jenkins/pytorch/win-test-helpers/download_image.py | 2 ++ .jenkins/pytorch/win-test-helpers/upload_image.py | 2 ++ caffe2/python/operator_test/lars_test.py | 0 tools/flake8_hook.py | 2 ++ 4 files changed, 6 insertions(+) mode change 100755 => 100644 caffe2/python/operator_test/lars_test.py diff --git a/.jenkins/pytorch/win-test-helpers/download_image.py b/.jenkins/pytorch/win-test-helpers/download_image.py index 1356ee43c78..a9923a99727 100755 --- a/.jenkins/pytorch/win-test-helpers/download_image.py +++ b/.jenkins/pytorch/win-test-helpers/download_image.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python + import os import sys import boto3 diff --git a/.jenkins/pytorch/win-test-helpers/upload_image.py b/.jenkins/pytorch/win-test-helpers/upload_image.py index ebaf72c04bf..80b365b40ed 100755 --- a/.jenkins/pytorch/win-test-helpers/upload_image.py +++ b/.jenkins/pytorch/win-test-helpers/upload_image.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python + import os import sys import boto3 diff --git a/caffe2/python/operator_test/lars_test.py b/caffe2/python/operator_test/lars_test.py old mode 100755 new mode 100644 diff --git a/tools/flake8_hook.py b/tools/flake8_hook.py index c4b5691195c..d1c377449c3 100755 --- a/tools/flake8_hook.py +++ b/tools/flake8_hook.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python + import sys from flake8.main import git