diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-09-19 23:34:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-19 23:34:02 -0500 |
commit | 55ece5839d3e9327de7a23ed346a12ec9526899d (patch) | |
tree | 1b115d8708ab4f1c72b3178595f831db09bf05cd /tools/cythonize.py | |
parent | ab0f63fa52b63e54d653a029f0bba7733a3673d2 (diff) | |
parent | 4c877be5fc4075595e15b4a451f76e128376de00 (diff) | |
download | numpy-55ece5839d3e9327de7a23ed346a12ec9526899d.tar.gz |
Merge pull request #8065 from gfyoung/fromfile-assert-bug
BUG: Assert fromfile ending earlier in pyx_processing
Diffstat (limited to 'tools/cythonize.py')
-rwxr-xr-x | tools/cythonize.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/cythonize.py b/tools/cythonize.py index 4ab10a058..2db0cbd52 100755 --- a/tools/cythonize.py +++ b/tools/cythonize.py @@ -91,10 +91,10 @@ def process_tempita_pyx(fromfile, tofile): except ImportError: raise Exception('Building %s requires Tempita: ' 'pip install --user Tempita' % VENDOR) + assert fromfile.endswith('.pyx.in') with open(fromfile, "r") as f: tmpl = f.read() pyxcontent = tempita.sub(tmpl) - assert fromfile.endswith('.pyx.in') pyxfile = fromfile[:-len('.pyx.in')] + '.pyx' with open(pyxfile, "w") as f: f.write(pyxcontent) |