summaryrefslogtreecommitdiff
path: root/numpy/f2py/__main__.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2015-07-25 22:49:53 -0600
committerCharles Harris <charlesr.harris@gmail.com>2015-07-25 23:18:23 -0600
commita0121573e6685f09e5f613280d616070b8ff99cb (patch)
tree2cd329c4b970e6c6de383c1e8ac24e8f29454658 /numpy/f2py/__main__.py
parentb80d1f979efb528e855263a38b389cebd3eb90e1 (diff)
downloadnumpy-a0121573e6685f09e5f613280d616070b8ff99cb.tar.gz
STY: Make PEP8 fixes in numpy/f2py
Decided to bite the bullet on this one. The code is certainly more readable, so should be easier to fix if we need to.
Diffstat (limited to 'numpy/f2py/__main__.py')
-rw-r--r--numpy/f2py/__main__.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/numpy/f2py/__main__.py b/numpy/f2py/__main__.py
index 11dbf5f52..8f6d25619 100644
--- a/numpy/f2py/__main__.py
+++ b/numpy/f2py/__main__.py
@@ -1,21 +1,23 @@
# See http://cens.ioc.ee/projects/f2py2e/
-import os, sys
+import os
+import sys
for mode in ["g3-numpy", "2e-numeric", "2e-numarray", "2e-numpy"]:
try:
- i=sys.argv.index("--"+mode)
+ i = sys.argv.index("--" + mode)
del sys.argv[i]
break
- except ValueError: pass
-os.environ["NO_SCIPY_IMPORT"]="f2py"
-if mode=="g3-numpy":
+ except ValueError:
+ pass
+os.environ["NO_SCIPY_IMPORT"] = "f2py"
+if mode == "g3-numpy":
sys.stderr.write("G3 f2py support is not implemented, yet.\\n")
sys.exit(1)
-elif mode=="2e-numeric":
+elif mode == "2e-numeric":
from f2py2e import main
-elif mode=="2e-numarray":
+elif mode == "2e-numarray":
sys.argv.append("-DNUMARRAY")
from f2py2e import main
-elif mode=="2e-numpy":
+elif mode == "2e-numpy":
from numpy.f2py import main
else:
sys.stderr.write("Unknown mode: " + repr(mode) + "\\n")