| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
if used as context managers, the parsers will automatically release their file locks.
feat(config-parsers): enable config parsers to be used as context managers
|
Awesome, many thanks ! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
If used as context managers, the parsers will automatically release their file locks. This was mentioned in #333 and seems like a good thing to have, as you can't forget to call release that way.
Another nice thing might be to use __enter__ to re-acquire locks if necessary, so that the readers can be used in multiple contexts.