Skip to content

Closing the requests.session #107

Closed
@JulienPalard

Description

@JulienPalard

OsmApi should provide a .close() method to close the underlying _session object, to avoid ResourceWarning: unclosed <ssl.SSLSocket warnings.

It could also provide a __enter__ and a __exit__, to implicitly call the close at exit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions