BUG: WindowsError not defined under Linux.

This commit is contained in:
Stefan van der Walt
2012-12-03 08:49:35 -08:00
parent 099b94efa1
commit 68c2ab205e
+7
View File
@@ -4,6 +4,13 @@ import hashlib
import subprocess
# WindowsError is not defined on unix systems
try:
WindowsError
except NameError:
WindowsError = None
def cython(pyx_files, working_path=''):
"""Use Cython to convert the given files to C.