/[escript]/trunk/escript/py_src/util.py
ViewVC logotype

Diff of /trunk/escript/py_src/util.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2421 by gross, Thu May 14 02:29:06 2009 UTC revision 2422 by gross, Thu May 14 03:17:28 2009 UTC
# Line 5987  class FileWriter(object): Line 5987  class FileWriter(object):
5987              if e==None:              if e==None:
5988                 raise IOError,"Unable to access file %s in mode %s for %s."%(self.name,self.mode,operation)                 raise IOError,"Unable to access file %s in mode %s for %s."%(self.name,self.mode,operation)
5989              else:              else:
5990                 raise IOError,e.message                 if hasattr(e,"message"):
5991                      raise IOError,e.message
5992                   else:
5993                      raise IOError,"Unable to access file %s in mode %s for %s."%(self.name,self.mode,operation)
5994                    
5995      def close(self):      def close(self):
5996          """          """

Legend:
Removed from v.2421  
changed lines
  Added in v.2422

  ViewVC Help
Powered by ViewVC 1.1.26