Skip to content

import psycopg2.submodule doesn't work with compat #24

@nanonyme

Description

@nanonyme

Since compat only registers psycopg2 to sys.modules, importing submodules with full dotted path does not work.
The approach of registering all psycopg2ct submodules in sys.modules as psycopg2 submodules is kinda ugly so I'm opening this bug in hope someone has better ideas on working around.

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