[Scipy-svn] r6261 - trunk/scipy/misc

scipy-svn at scipy.org scipy-svn at scipy.org
Sun Mar 21 08:37:36 EDT 2010


Author: warren.weckesser
Date: 2010-03-21 07:37:36 -0500 (Sun, 21 Mar 2010)
New Revision: 6261

Modified:
   trunk/scipy/misc/ppimport.py
Log:
BUG: Fix two mistakes found by pyflakes, one of which was reported in ticket 1133.

Modified: trunk/scipy/misc/ppimport.py
===================================================================
--- trunk/scipy/misc/ppimport.py	2010-03-20 13:42:28 UTC (rev 6260)
+++ trunk/scipy/misc/ppimport.py	2010-03-21 12:37:36 UTC (rev 6261)
@@ -143,7 +143,7 @@
     if p_name=='__main__':
         p_dir = ''
         fullname = name
-    elif '__path__' in _frame.f_locals:
+    elif '__path__' in p_frame.f_locals:
         # python package
         p_path = p_frame.f_locals['__path__']
         p_dir = p_path[0]
@@ -243,7 +243,7 @@
 
         if location != 'sys.path':
             from numpy.testing import Tester
-            self.__dict__['test'] = Tester(os,path.dirname(location)).test
+            self.__dict__['test'] = Tester(os.path.dirname(location)).test
 
         # install loader
         sys.modules[name] = self




More information about the Scipy-svn mailing list