Use Python 3 in script shebangs
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Tue, 4 Feb 2020 00:34:03 +0000 (00:34 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 4 Feb 2020 00:34:03 +0000 (00:34 +0000)
(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 <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name python3_shebangs.patch

12 files changed:
docs/fix_longtable.py
examples/python/plots_boxplots.py
examples/python/robust_models_1.py
statsmodels/regression/quantile_regression.py
statsmodels/sandbox/examples/example_pca.py
statsmodels/tools/print_version.py
tools/backport_pr.py
tools/code_maintenance.py
tools/export_notebooks_to_python.py
tools/generate_formula_api.py
tools/github_stats.py
tools/update_web.py

index 2dd73e4c774c08652c345eeaec2f44b77486195b..cc56161fbc1ddd02e58255d0434961df113c6419 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 import sys
 import os
 
index 83ec1d0f5e7f96a4b19680e404ef02110b24435e..f64c9da46e35e02928db2f4a19aa5584a5c591fb 100644 (file)
@@ -5,7 +5,7 @@
 # flake8: noqa
 # DO NOT EDIT
 
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # coding: utf-8
 
 # # Box Plots
index 40be4f4dbed178539e815312b047074b9814b556..3fc7824eb7165897832828b22a6f402b1470cfcb 100644 (file)
@@ -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
index 05fb99b61aa2672af220b4cd7d5cde6db2f49b2b..d293cc57bd591e8718b811e973083fa6c7a53bc4 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 '''
 Quantile regression model
index 2d32c25f3b663b184daeb33d0e7f3040630a4837..695121806f35b36c82c323d18b882cabf31bf2ff 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import numpy as np
 from statsmodels.sandbox.pca import Pca
index 082bf277af2ff6c882dec4dd587586ef205b3b5e..f2b8f4e7fd37181f66756039298013caa0ac1aa4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 from __future__ import print_function
 from statsmodels.compat.python import reduce
 import sys
index 54e60967a73463a99279142093169b40dd681e68..9b470e84ba4e24a65eb9a0520f7a9eb4c46e22bf 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """
 Backport pull requests to a particular branch.
 
index 889c80cd946cace31987de723ba989d9ac3f22f0..44b4168ad38139178daa57e6d52c12c8a6c73d6d 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """
 Code maintenance script modified from PyMC
 """
index 237fa38f2546c989b9644f0097cc9dbfb820aef7..b56bd2eaa2f54d182e49b62ff834f7f3012b7dbe 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 import argparse
 import glob
index 244d90991a6366e57d08baab7a5bb92e80ed290f..d0e4eca1da8ac0ea9cba27e782744d1160632c7e 100755 (executable)
@@ -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
 
index dac9394e2cf93d9b96a777904531a5d3d33f7eb3..b1b69e421f5cb00c26deff2611e7c9bbcd922aa9 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """Simple tools to query github.com and gather stats about issues.
 
 Copied from IPython 732be29
index b0766830bebbef0415477eb13629f201a082584f..4fe08cd873bb88ae4635c2b194341566a7f22349 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """
 This script installs the trunk version, builds the docs, then uploads them
 to ...