• Barry Warsaw's avatar
    Added support for including the filename in IOErrors and OSErrors that · 2dfe4de6
    Barry Warsaw yazdı
    involve a filesystem path.  To that end:
    
    - Changed IOError to EnvironmentError and added a hack which checks
      for arg of len 3.  When constructed with a 3-tuple, the third item
      is the filename and this is squirreled away in the `filename'
      attribute.   However, for in-place unpacking backwards
      compatibility, self.args still only gets the first two items.  Added
      a __str__() which prints the filename if it is given.
    
    - IOError now inherits from EnvironmentError
    
    - New class OSError which also inherits from EnvironmentError and is
      used by the posix module.
    2dfe4de6
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.hgtags Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...