Skip to content

pathlib ABCs should not raise auditing events or deprecation warnings #113568

Closed
@barneygale

Description

@barneygale

Bug report

The (private) pathlib._abc.PathBase class raises auditing events in its implementations of glob(), rglob() and walk(). These events should only be raised from the concrete implementations of these methods in pathlib.Path, and not from the ABC.

Also, several methods raise deprecation warnings. Same deal there.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixestopic-pathlibtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions