From e1d0fb9f22ccf8ac1372601ad7910408135c37aa Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Wed, 26 Aug 2020 22:34:50 +0100 Subject: [PATCH] Use Python 3 shebangs and subprocess calls Author: Rebecca N. Palmer Forwarded: accepted for 1.1 https://github.com/pandas-dev/pandas/pull/31147 Gbp-Pq: Name fix_shebangs.patch --- ci/print_skipped.py | 2 +- doc/make.py | 2 +- doc/sphinxext/announce.py | 2 +- pandas/core/computation/eval.py | 2 +- pandas/tests/io/generate_legacy_storage_files.py | 2 +- pandas/tests/plotting/common.py | 2 +- scripts/download_wheels.py | 2 +- scripts/find_commits_touching_func.py | 2 +- scripts/generate_pip_deps_from_conda.py | 2 +- scripts/validate_docstrings.py | 2 +- scripts/validate_string_concatenation.py | 2 +- setup.py | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ci/print_skipped.py b/ci/print_skipped.py index 72822fa2..60e2f047 100755 --- a/ci/print_skipped.py +++ b/ci/print_skipped.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import xml.etree.ElementTree as et diff --git a/doc/make.py b/doc/make.py index 4b08b07a..ba4e5ba8 100755 --- a/doc/make.py +++ b/doc/make.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Python script for building documentation. diff --git a/doc/sphinxext/announce.py b/doc/sphinxext/announce.py index 3acc313f..9c175e4e 100755 --- a/doc/sphinxext/announce.py +++ b/doc/sphinxext/announce.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding:utf-8 -*- """ Script to generate contributor and pull request lists diff --git a/pandas/core/computation/eval.py b/pandas/core/computation/eval.py index 51892b8c..71e1b6c2 100644 --- a/pandas/core/computation/eval.py +++ b/pandas/core/computation/eval.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Top level ``eval`` module. diff --git a/pandas/tests/io/generate_legacy_storage_files.py b/pandas/tests/io/generate_legacy_storage_files.py index 6ef0e045..67b767a3 100755 --- a/pandas/tests/io/generate_legacy_storage_files.py +++ b/pandas/tests/io/generate_legacy_storage_files.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ self-contained to write legacy storage pickle files diff --git a/pandas/tests/plotting/common.py b/pandas/tests/plotting/common.py index 45452526..05641399 100644 --- a/pandas/tests/plotting/common.py +++ b/pandas/tests/plotting/common.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 import os diff --git a/scripts/download_wheels.py b/scripts/download_wheels.py index 3d36eed2..6ab4b58e 100644 --- a/scripts/download_wheels.py +++ b/scripts/download_wheels.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Fetch wheels from wheels.scipy.org for a pandas version.""" import argparse import pathlib diff --git a/scripts/find_commits_touching_func.py b/scripts/find_commits_touching_func.py index 5e1a169d..85675cb6 100755 --- a/scripts/find_commits_touching_func.py +++ b/scripts/find_commits_touching_func.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # copyright 2013, y-p @ github """ Search the git history for all commits touching a named method diff --git a/scripts/generate_pip_deps_from_conda.py b/scripts/generate_pip_deps_from_conda.py index 53a27e87..b64ee4c9 100755 --- a/scripts/generate_pip_deps_from_conda.py +++ b/scripts/generate_pip_deps_from_conda.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Convert the conda environment.yml to the pip requirements-dev.txt, or check that they have the same packages (for the CI) diff --git a/scripts/validate_docstrings.py b/scripts/validate_docstrings.py index bcf3fd5d..db2e87d5 100755 --- a/scripts/validate_docstrings.py +++ b/scripts/validate_docstrings.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Analyze docstrings to detect errors. diff --git a/scripts/validate_string_concatenation.py b/scripts/validate_string_concatenation.py index 3feeddaa..fbf3bb5c 100755 --- a/scripts/validate_string_concatenation.py +++ b/scripts/validate_string_concatenation.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ GH #30454 diff --git a/setup.py b/setup.py index e29f6fcd..13b1f712 100755 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Parts of this file were taken from the pyzmq project -- 2.30.2