(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
-#!/usr/bin/env python
+#!/usr/bin/env python3
import sys
import os
-#!/usr/bin/env python
+#!/usr/bin/env python3
'''
Quantile regression model
-#!/usr/bin/env python
+#!/usr/bin/env python3
import numpy as np
from statsmodels.sandbox.pca import Pca
-#!/usr/bin/env python
+#!/usr/bin/env python3
from functools import reduce
import sys
from os.path import dirname
-#!/usr/bin/env python
+#!/usr/bin/env python3
import argparse
import glob
import logging
continue
elif block.startswith("# In[ ]:"):
continue
+ if block == "#!/usr/bin/env python":
+ block = "#!/usr/bin/env python3"
if block.startswith("#"):
# Wrap comments from Markdown
block = textwrap.fill(block, width=74)
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
This will generate an API file for formula in dir/statsmodels/formula/api.py