diff options
| author | Bharat123rox <bharatraghunthan9767@gmail.com> | 2019-05-08 12:11:26 +0530 |
|---|---|---|
| committer | Bharat123rox <bharatraghunthan9767@gmail.com> | 2019-05-08 12:11:26 +0530 |
| commit | fb514fcecddf73ecc20a4796abcc711699508182 (patch) | |
| tree | 355162b039f40079124ac8dd47c83d285e4c5300 /numpy | |
| parent | 802d8e5d52434642713a019cd067af9917239565 (diff) | |
| download | numpy-fb514fcecddf73ecc20a4796abcc711699508182.tar.gz | |
Add missing imports
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/distutils/conv_template.py | 1 | ||||
| -rw-r--r-- | numpy/distutils/from_template.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/numpy/distutils/conv_template.py b/numpy/distutils/conv_template.py index 7916f2875..e8823ed53 100644 --- a/numpy/distutils/conv_template.py +++ b/numpy/distutils/conv_template.py @@ -87,6 +87,7 @@ import os import sys import re +from numpy.compat import contextlib_nullcontext from numpy.distutils.compat import get_exception # names for replacement that are already global. diff --git a/numpy/distutils/from_template.py b/numpy/distutils/from_template.py index 419c0e7a8..026de0093 100644 --- a/numpy/distutils/from_template.py +++ b/numpy/distutils/from_template.py @@ -53,6 +53,8 @@ import os import sys import re +from numpy.compat import contextlib_nullcontext + routine_start_re = re.compile(r'(\n|\A)(( (\$|\*))|)\s*(subroutine|function)\b', re.I) routine_end_re = re.compile(r'\n\s*end\s*(subroutine|function)\b.*(\n|\Z)', re.I) function_start_re = re.compile(r'\n (\$|\*)\s*function\b', re.I) |
