From 43f837946cef5f8be0ff12d367b3b0d37181f95d Mon Sep 17 00:00:00 2001 From: Debian Science Maintainers Date: Sat, 6 Feb 2021 16:48:16 +0000 Subject: [PATCH] Use Python 3 in script shebangs (Skipping the two .pyx files with #!python - they need to be compiled with Cython, not directly run with any version of plain Python) Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name python3_shebangs.patch --- archive/docs/fix_longtable.py | 2 +- examples/python/plots_boxplots.py | 2 +- examples/python/robust_models_1.py | 2 +- statsmodels/regression/quantile_regression.py | 2 +- statsmodels/sandbox/examples/example_pca.py | 2 +- statsmodels/tools/print_version.py | 2 +- tools/export_notebooks_to_python.py | 2 +- tools/generate_formula_api.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/archive/docs/fix_longtable.py b/archive/docs/fix_longtable.py index 2dd73e4..cc56161 100644 --- a/archive/docs/fix_longtable.py +++ b/archive/docs/fix_longtable.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys import os diff --git a/examples/python/plots_boxplots.py b/examples/python/plots_boxplots.py index 6b7b38c..17e4360 100644 --- a/examples/python/plots_boxplots.py +++ b/examples/python/plots_boxplots.py @@ -5,7 +5,7 @@ # flake8: noqa # DO NOT EDIT -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 # # Box Plots diff --git a/examples/python/robust_models_1.py b/examples/python/robust_models_1.py index 227c12e..774d58b 100644 --- a/examples/python/robust_models_1.py +++ b/examples/python/robust_models_1.py @@ -5,7 +5,7 @@ # flake8: noqa # DO NOT EDIT -#!/usr/bin/env python +#!/usr/bin/env python3 # coding: utf-8 # # M-Estimators for Robust Linear Modeling diff --git a/statsmodels/regression/quantile_regression.py b/statsmodels/regression/quantile_regression.py index 8ae1962..3ab2a96 100644 --- a/statsmodels/regression/quantile_regression.py +++ b/statsmodels/regression/quantile_regression.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' Quantile regression model diff --git a/statsmodels/sandbox/examples/example_pca.py b/statsmodels/sandbox/examples/example_pca.py index 2d32c25..6951218 100644 --- a/statsmodels/sandbox/examples/example_pca.py +++ b/statsmodels/sandbox/examples/example_pca.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import numpy as np from statsmodels.sandbox.pca import Pca diff --git a/statsmodels/tools/print_version.py b/statsmodels/tools/print_version.py index a0c0944..d3deb29 100755 --- a/statsmodels/tools/print_version.py +++ b/statsmodels/tools/print_version.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from functools import reduce import sys from os.path import dirname diff --git a/tools/export_notebooks_to_python.py b/tools/export_notebooks_to_python.py index 237fa38..b56bd2e 100644 --- a/tools/export_notebooks_to_python.py +++ b/tools/export_notebooks_to_python.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import glob diff --git a/tools/generate_formula_api.py b/tools/generate_formula_api.py index 4a96526..cab1725 100755 --- a/tools/generate_formula_api.py +++ b/tools/generate_formula_api.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ This will generate an API file for formula in dir/statsmodels/formula/api.py -- 2.30.2