From: Debian Science Maintainers Date: Sun, 1 Sep 2024 10:18:24 +0000 (+0100) Subject: Use Python 3 in script shebangs X-Git-Tag: archive/raspbian/0.14.2+dfsg-2+rpi1^2~21 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c2b2abfcefe73a75106c3dc3a82e1d0ea2010ee8;p=statsmodels.git 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 --- diff --git a/archive/docs/fix_longtable.py b/archive/docs/fix_longtable.py index 1147c69..31958df 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 36d0e21..9feaae2 100644 --- a/examples/python/plots_boxplots.py +++ b/examples/python/plots_boxplots.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # DO NOT EDIT # Autogenerated from the notebook plots_boxplots.ipynb. diff --git a/examples/python/robust_models_1.py b/examples/python/robust_models_1.py index c501af6..d5c5084 100644 --- a/examples/python/robust_models_1.py +++ b/examples/python/robust_models_1.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # DO NOT EDIT # Autogenerated from the notebook robust_models_1.ipynb. diff --git a/statsmodels/regression/quantile_regression.py b/statsmodels/regression/quantile_regression.py index 5060253..7b9c5e5 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 8a4ece0..6accfaa 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 145ccff..b9a1676 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 import argparse import glob import logging diff --git a/tools/generate_formula_api.py b/tools/generate_formula_api.py index 8cc08c3..9277e47 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