Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(894)

#15176: Clarify the behavior of listdir(fd) in both code and documentation

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 months ago by larry
Modified:
11 months ago
Reviewers:
georg
CC:
Georg, Nick Coghlan, larry, Arfrever.FTA_GMail.Com, devnull_psf.upfronthosting.co.za
Visibility:
Public.

Patch Set 1 #

Total comments: 2

Patch Set 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
Doc/library/os.rst View 1 1 chunk +9 lines, -6 lines 0 comments Download
Lib/test/test_posix.py View 1 1 chunk +12 lines, -7 lines 0 comments Download
Modules/posixmodule.c View 1 6 chunks +22 lines, -13 lines 0 comments Download

Messages

Total messages: 2
Georg
http://bugs.python.org/review/15176/diff/5232/Lib/test/test_posix.py File Lib/test/test_posix.py (right): http://bugs.python.org/review/15176/diff/5232/Lib/test/test_posix.py#newcode450 Lib/test/test_posix.py:450: requires_listdir = unittest.skipUnless(hasattr(posix, 'listdir'), Hmm, do we have *any* ...
11 months ago #1
larry
11 months ago #2
http://bugs.python.org/review/15176/diff/5232/Lib/test/test_posix.py
File Lib/test/test_posix.py (right):

http://bugs.python.org/review/15176/diff/5232/Lib/test/test_posix.py#newcode450
Lib/test/test_posix.py:450: requires_listdir =
unittest.skipUnless(hasattr(posix, 'listdir'),
On 2012/06/25 10:40:41, Georg wrote:
> Hmm, do we have *any* supported platform without listdir()?

You can see, the previous code was littered with if hasattr(posix, 'listdir')
checks; I just cleaned 'em up.  But you're right, posix_listdir is
unconditional.  I'll remove those checks.
Sign in to reply to this message.

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7