Fixed a potential Python 2.2+ bug and tidied the code slightly.
In Python 2.2 and above, getattr operations distinguish AttributeErrors from other kinds of operations. But Wrapper_acquire was masking some errors as AttributeErrors. Fixed. Added a comment explaining apply_filter, added curly brackets to disambiguate nesting in Wrapper_acquire, and re-indented to clarify.
Showing
Please register or sign in to comment