diff options
author | Pauli Virtanen <pav@iki.fi> | 2009-12-06 11:56:03 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2009-12-06 11:56:03 +0000 |
commit | 4a3fd1f40ef59b872341088a2e97712c671ea4ca (patch) | |
tree | 41d06b98fcdecc34185af890f816664b1770cc6b /numpy/distutils/fcompiler | |
parent | fe562323c1304dfc0d7029a039d4260b6c7ba613 (diff) | |
download | numpy-4a3fd1f40ef59b872341088a2e97712c671ea4ca.tar.gz |
3K: distutils: ordering between None and str is undefined in Py3K, so fcompiler should raise CompilerNotFound when version is undefined
Diffstat (limited to 'numpy/distutils/fcompiler')
-rw-r--r-- | numpy/distutils/fcompiler/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/distutils/fcompiler/__init__.py b/numpy/distutils/fcompiler/__init__.py index 66192c37f..4405f97ac 100644 --- a/numpy/distutils/fcompiler/__init__.py +++ b/numpy/distutils/fcompiler/__init__.py @@ -419,7 +419,10 @@ class FCompiler(CCompiler): def get_version(self, force=False, ok_status=[0]): assert self._is_customised - return CCompiler.get_version(self, force=force, ok_status=ok_status) + version = CCompiler.get_version(self, force=force, ok_status=ok_status) + if version is None: + raise CompilerNotFound() + return version ############################################################ |