WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Remove redundant context manager in db_select #84

@Iain-S

Description

@Iain-S

rctab-api/rctab/utils.py

Lines 23 to 28 in cef5746

def wrapping_logic(statement: Any) -> Generator:
logger.debug("Function: %s", func.__name__)
del statement
yield

This context manager doesn't really do anything that we couldn't achieve more directly with a simple call to logging.debug.
Therefore, I suggest we remove it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions