[Patches] [ python-Patches-707167 ] fix bug #682813: dircache.listdir doesn't signal error

SourceForge.net noreply@sourceforge.net
Thu, 20 Mar 2003 14:14:38 -0800


Patches item #707167, was opened at 2003-03-20 22:13
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=707167&group_id=5470

>Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Stone (mbrierst)
Assigned to: Nobody/Anonymous (nobody)
Summary: fix bug #682813: dircache.listdir doesn't signal error

Initial Comment:

Attached small patch makes dircache.listdir
raise OSError when encountered in
os.stat or os.listdir.  This certainly seems
like the right thing to do to be consistent
with os.listdir, though there may have been
a reason not to raise the exception I don't know
about, as it is obviously being purposefully caught
right now.  If there is a reason, someone let me
know and I'll submit a patch to change dircache's
documentation to reflect its behavior.

The test case is also updated by the patch.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=707167&group_id=5470