Skip to content

Conversation

@boidolr
Copy link
Contributor

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.

if used as context managers, the parsers will automatically release their file locks.
Byron added a commit that referenced this pull request Feb 20, 2016
feat(config-parsers): enable config parsers to be used as context managers
@ByronByron merged commit fcca77a into gitpython-developers:masterFeb 20, 2016
@Byron
Copy link
Member

Awesome, many thanks !

@ByronByron added this to the v1.0.3 - Fixes milestone Feb 20, 2016
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@boidolr@Byron