From: Debian Science Team Date: Thu, 7 May 2020 10:57:06 +0000 (+0100) Subject: Use Python 3 shebangs and subprocess calls X-Git-Tag: archive/raspbian/0.25.3+dfsg2-2+rpi1^2~12 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=55be55150cb7cb38d62a54e85632e19e56f6f3c3;p=pandas.git Use Python 3 shebangs and subprocess calls Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name fix_shebangs.patch --- diff --git a/ci/print_skipped.py b/ci/print_skipped.py index a4428104..0ef66a84 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 sys diff --git a/doc/make.py b/doc/make.py index 7dbc5efc..72e4204f 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 1a5ab99b..c78f72cd 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 456ecf4b..9e5b37dd 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 2d293869..6fde2c60 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/msgpack) files diff --git a/pandas/tests/io/test_compression.py b/pandas/tests/io/test_compression.py index 16ca1109..ebcc0c28 100644 --- a/pandas/tests/io/test_compression.py +++ b/pandas/tests/io/test_compression.py @@ -139,7 +139,7 @@ def test_with_missing_lzma(): import pandas """ ) - subprocess.check_output(["python", "-c", code]) + subprocess.check_output(["python3", "-c", code]) def test_with_missing_lzma_runtime(): @@ -156,4 +156,4 @@ def test_with_missing_lzma_runtime(): df.to_csv('foo.csv', compression='xz') """ ) - subprocess.check_output(["python", "-c", code]) + subprocess.check_output(["python3", "-c", code]) diff --git a/pandas/tests/plotting/common.py b/pandas/tests/plotting/common.py index 4929422d..d1ea3ed5 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 4ca13543..b7c5c27a 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/generate_pip_deps_from_conda.py b/scripts/generate_pip_deps_from_conda.py index ac73859b..997ea801 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 37623d32..c33565ff 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/setup.py b/setup.py index 8cc60ba6..0e2e330f 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