Documentation incorrectly implies acquire() is in the public API
Bug #838338 reported by
Johan Hake
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
flufl.lock |
Fix Released
|
Low
|
Barry Warsaw |
Bug Description
When acquire is used without the lifetime argument it fails. The signature comes with a default argument of None. None breaks the code with the following error:
AttributeError: 'NoneType' object has no attribute 'seconds'
Changed in flufl.lock: | |
milestone: | none → 2.2 |
status: | Confirmed → Fix Committed |
Changed in flufl.lock: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Ah, you're talking about the flufl.lock. tests.subproc. acquire( ) function? That's really just a unit test support function, and not part of the public interface for the library.
If so, then the documentation should make that clearer, probably by including some text and renaming the function to start with a leading underscore.