Difference for python/CFDataFile.py from version 1.5 to 1.6


version 1.5 version 1.6
Line 40
 
Line 40
     def make_file(self, header):       def make_file(self, header):
         '''creates a datafile, making the column header from a list passed in'''           '''creates a datafile, making the column header from a list passed in'''
         try:           try:
             file = open(self.filename,'w')               file = open(self.filename,'wb')
         except:           except:
             print "Can't create datafile %s" % self.datafile_name               print "Can't create datafile %s" % self.datafile_name
         else:           else:
Line 56
 
Line 56
         '''Gets the formatted file as a dictionary           '''Gets the formatted file as a dictionary
         The # key contains the column headers for the file and indicates the 'primary' key'''           The # key contains the column headers for the file and indicates the 'primary' key'''
         try:           try:
             file = open(self.filename,'r')               file = open(self.filename,'rb')
         except:           except:
             raise 'Unable to read %s' % self.filename               raise 'Unable to read %s' % self.filename
         else:           else:


Legend:
line(s) removed in v.1.5 
line(s) changed
 line(s) added in v.1.6

File made using version 1.96 of cvs2html by leaf at 2006-02-15 17:25