Skip to content

Add support for with blocks to Connection #183

@rshaull

Description

@rshaull

Support with blocks (__enter__ and __exit__ magic methods) in class Connection (connection.py).

  • __enter__ should create a Connection
  • __exit__ should close that Connection

The pull request should include a test which demonstrates correct behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions