cartopy icon indicating copy to clipboard operation
cartopy copied to clipboard

Using shapereader with `with` statement

Open JosefWN opened this issue 1 year ago • 1 comments

I noticed that __enter__ and __exit__ are missing from the shapereaders, is this intentional, if so, what's the rationale?

JosefWN avatar Apr 08 '23 13:04 JosefWN

I am guessing that it is just that no one has taken the time to turn the readers into a context manager. PRs are welcome if you'd like to propose that addition.

greglucas avatar Apr 10 '23 14:04 greglucas