8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab0f63f + 4c877be commit 55ece58Copy full SHA for 55ece58
tools/cythonize.py
@@ -91,10 +91,10 @@ def process_tempita_pyx(fromfile, tofile):
91
except ImportError:
92
raise Exception('Building %s requires Tempita: '
93
'pip install --user Tempita' % VENDOR)
94
+ assert fromfile.endswith('.pyx.in')
95
with open(fromfile, "r") as f:
96
tmpl = f.read()
97
pyxcontent = tempita.sub(tmpl)
- assert fromfile.endswith('.pyx.in')
98
pyxfile = fromfile[:-len('.pyx.in')] + '.pyx'
99
with open(pyxfile, "w") as f:
100
f.write(pyxcontent)
0 commit comments