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/distutils/from_template.py | |
| parent | 802d8e5d52434642713a019cd067af9917239565 (diff) | |
| download | numpy-fb514fcecddf73ecc20a4796abcc711699508182.tar.gz | |
Add missing imports
Diffstat (limited to 'numpy/distutils/from_template.py')
| -rw-r--r-- | numpy/distutils/from_template.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |
