This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients amaury.forgeotdarc, barry, christian.heimes, jnoller, loewis
Date 2008-12-02.21:15:11
SpamBayes Score 0.0038437508
Marked as misclassified No
Message-id <1228252512.32.0.420248429239.issue4449@psf.upfronthosting.co.za>
In-reply-to
Content
The patch looks fine. However I propose to replace the assert statement
with a proper check that raises a meaningful exception.

if not hasattr(lock, 'acquire'):
    raise AttributeError("'%r' has no method 'acquire'" % lock)
History
Date User Action Args
2008-12-02 21:15:12christian.heimessetrecipients: + christian.heimes, loewis, barry, amaury.forgeotdarc, jnoller
2008-12-02 21:15:12christian.heimessetmessageid: <1228252512.32.0.420248429239.issue4449@psf.upfronthosting.co.za>
2008-12-02 21:15:11christian.heimeslinkissue4449 messages
2008-12-02 21:15:11christian.heimescreate