Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stacklevel=2 in deprecation warning #210

Closed
char101 opened this issue Dec 10, 2022 · 0 comments
Closed

Add stacklevel=2 in deprecation warning #210

char101 opened this issue Dec 10, 2022 · 0 comments

Comments

@char101
Copy link

char101 commented Dec 10, 2022

Hi,

Could you add a stacklevel of as least 2 in

warnings.warn(".text is deprecated; use read_text", DeprecationWarning)

So that the user can know which code call the function. Without a stacklevel of as least 2, it will only show the deprecation warning originating from path/__init__.py.

@jaraco jaraco closed this as completed in fd4ad31 Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant