[NumPy-Tickets] [NumPy] #1777: fh is not defined in npyio.py fromregex

NumPy Trac numpy-tickets@scipy....
Tue Mar 22 15:54:17 CDT 2011


#1777: fh is not defined in npyio.py fromregex
------------------------+---------------------------------------------------
 Reporter:  citizenwad  |       Owner:  somebody   
     Type:  defect      |      Status:  new        
 Priority:  normal      |   Milestone:  Unscheduled
Component:  Other       |     Version:  1.5.1      
 Keywords:              |  
------------------------+---------------------------------------------------

Comment(by citizenwad):

 The following changes should be made to npyio.py:
 line 949 change "file = open(file,'rb')"  to "fh = open(file,'rb')"
 line 958 change "seq = regexp.findall(file.read())" to "seq =
 regexp.findall(fh.read())"

 I have verified that this fixes the bug.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1777#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list