[Numpy-svn] r5829 - in trunk/numpy/f2py: . doc

numpy-svn@scip... numpy-svn@scip...
Wed Sep 17 22:46:00 CDT 2008


Author: alan.mcintyre
Date: 2008-09-17 22:45:53 -0500 (Wed, 17 Sep 2008)
New Revision: 5829

Modified:
   trunk/numpy/f2py/auxfuncs.py
   trunk/numpy/f2py/cb_rules.py
   trunk/numpy/f2py/cfuncs.py
   trunk/numpy/f2py/common_rules.py
   trunk/numpy/f2py/crackfortran.py
   trunk/numpy/f2py/doc/collectinput.py
   trunk/numpy/f2py/f2py2e.py
   trunk/numpy/f2py/f2py_testing.py
   trunk/numpy/f2py/f90mod_rules.py
   trunk/numpy/f2py/func2subr.py
   trunk/numpy/f2py/use_rules.py
Log:
Removed unused/redundant imports.
PEP8 conformance (only one import per line).


Modified: trunk/numpy/f2py/auxfuncs.py
===================================================================
--- trunk/numpy/f2py/auxfuncs.py	2008-09-18 03:33:58 UTC (rev 5828)
+++ trunk/numpy/f2py/auxfuncs.py	2008-09-18 03:45:53 UTC (rev 5829)
@@ -20,9 +20,7 @@
 
 import pprint
 import sys
-import time
 import types
-import os
 import cfuncs
 
 

Modified: trunk/numpy/f2py/cb_rules.py
===================================================================
--- trunk/numpy/f2py/cb_rules.py	2008-09-18 03:33:58 UTC (rev 5828)
+++ trunk/numpy/f2py/cb_rules.py	2008-09-18 03:45:53 UTC (rev 5829)
@@ -21,16 +21,13 @@
 
 import pprint
 import sys
-import time
 import types
-import copy
 errmess=sys.stderr.write
 outmess=sys.stdout.write
 show=pprint.pprint
 
 from auxfuncs import *
 import capi_maps
-#from capi_maps import *
 import cfuncs
 
 ################## Rules for callback function ##############

Modified: trunk/numpy/f2py/cfuncs.py
===================================================================
--- trunk/numpy/f2py/cfuncs.py	2008-09-18 03:33:58 UTC (rev 5828)
+++ trunk/numpy/f2py/cfuncs.py	2008-09-18 03:45:53 UTC (rev 5829)
@@ -19,7 +19,9 @@
 import __version__
 f2py_version = __version__.version
 
-import types,sys,copy,os
+import types
+import sys
+import copy
 errmess=sys.stderr.write
 
 ##################### Definitions ##################

Modified: trunk/numpy/f2py/common_rules.py
===================================================================
--- trunk/numpy/f2py/common_rules.py	2008-09-18 03:33:58 UTC (rev 5828)
+++ trunk/numpy/f2py/common_rules.py	2008-09-18 03:45:53 UTC (rev 5829)
@@ -20,16 +20,12 @@
 
 import pprint
 import sys
-import time
-import types
-import copy
 errmess=sys.stderr.write
 outmess=sys.stdout.write
 show=pprint.pprint
 
 from auxfuncs import *
 import capi_maps
-import cfuncs
 import func2subr
 from crackfortran import rmbadname
 ##############

Modified: trunk/numpy/f2py/crackfortran.py
===================================================================
--- trunk/numpy/f2py/crackfortran.py	2008-09-18 03:33:58 UTC (rev 5828)
+++ trunk/numpy/f2py/crackfortran.py	2008-09-18 03:45:53 UTC (rev 5829)
@@ -15,7 +15,6 @@
 __version__ = "$Revision: 1.177 $"[10:-1]
 
 import __version__
-import string
 f2py_version = __version__.version
 
 """

Modified: trunk/numpy/f2py/doc/collectinput.py
===================================================================
--- trunk/numpy/f2py/doc/collectinput.py	2008-09-18 03:33:58 UTC (rev 5828)
+++ trunk/numpy/f2py/doc/collectinput.py	2008-09-18 03:45:53 UTC (rev 5829)
@@ -23,7 +23,6 @@
 
 stdoutflag=0
 import sys
-import os
 import fileinput
 import re
 import commands

Modified: trunk/numpy/f2py/f2py2e.py
===================================================================
--- trunk/numpy/f2py/f2py2e.py	2008-09-18 03:33:58 UTC (rev 5828)
+++ trunk/numpy/f2py/f2py2e.py	2008-09-18 03:45:53 UTC (rev 5829)
@@ -21,7 +21,6 @@
 import sys
 import os
 import pprint
-import shutil
 import types
 import re
 errmess=sys.stderr.write
@@ -31,11 +30,8 @@
 import crackfortran
 import rules
 import cb_rules
-import common_rules
 import auxfuncs
 import cfuncs
-import capi_maps
-import func2subr
 import f90mod_rules
 
 outmess = auxfuncs.outmess
@@ -395,7 +391,7 @@
     """
     Do it all in one call!
     """
-    import tempfile,os,shutil
+    import tempfile
 
     i = sys.argv.index('-c')
     del sys.argv[i]
@@ -547,6 +543,7 @@
     setup(ext_modules = [ext])
 
     if remove_build_dir and os.path.exists(build_dir):
+        import shutil 
         outmess('Removing build directory %s\n'%(build_dir))
         shutil.rmtree(build_dir)
 

Modified: trunk/numpy/f2py/f2py_testing.py
===================================================================
--- trunk/numpy/f2py/f2py_testing.py	2008-09-18 03:33:58 UTC (rev 5828)
+++ trunk/numpy/f2py/f2py_testing.py	2008-09-18 03:45:53 UTC (rev 5829)
@@ -1,4 +1,5 @@
-import os,sys,re,time
+import sys
+import re
 
 from numpy.testing.utils import jiffies, memusage
 

Modified: trunk/numpy/f2py/f90mod_rules.py
===================================================================
--- trunk/numpy/f2py/f90mod_rules.py	2008-09-18 03:33:58 UTC (rev 5828)
+++ trunk/numpy/f2py/f90mod_rules.py	2008-09-18 03:45:53 UTC (rev 5829)
@@ -17,11 +17,8 @@
 
 f2py_version='See `f2py -v`'
 
-import copy
 import pprint
 import sys
-import time
-import types
 errmess=sys.stderr.write
 outmess=sys.stdout.write
 show=pprint.pprint
@@ -29,7 +26,6 @@
 from auxfuncs import *
 import numpy as np
 import capi_maps
-import cfuncs
 import rules
 import func2subr
 from crackfortran import undo_rmbadname, undo_rmbadname1

Modified: trunk/numpy/f2py/func2subr.py
===================================================================
--- trunk/numpy/f2py/func2subr.py	2008-09-18 03:33:58 UTC (rev 5828)
+++ trunk/numpy/f2py/func2subr.py	2008-09-18 03:45:53 UTC (rev 5829)
@@ -20,9 +20,6 @@
 import pprint
 import copy
 import sys
-import time
-import types
-import copy
 errmess=sys.stderr.write
 outmess=sys.stdout.write
 show=pprint.pprint

Modified: trunk/numpy/f2py/use_rules.py
===================================================================
--- trunk/numpy/f2py/use_rules.py	2008-09-18 03:33:58 UTC (rev 5828)
+++ trunk/numpy/f2py/use_rules.py	2008-09-18 03:45:53 UTC (rev 5829)
@@ -21,16 +21,11 @@
 
 import pprint
 import sys
-import time
-import types
-import copy
 errmess=sys.stderr.write
 outmess=sys.stdout.write
 show=pprint.pprint
 
 from auxfuncs import *
-import capi_maps
-import cfuncs
 ##############
 
 usemodule_rules={



More information about the Numpy-svn mailing list