Christian Heimes <[EMAIL PROTECTED]> added the comment:

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)

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4449>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to