
May 16, 2008
10:52 a.m.
"Alexander Belopolsky" <alexander.belopolsky@gmail.com> writes:
try: ... open('/') ... except Exception,e: ... pass ... print e [Errno 21] Is a directory
So now I am not sure what OP is proposing. Do you want to replace 21 with EISDIR in the above?
Yes, that's what I had in mind. -- Yannick Gingras