1
0
Fork 0

Support module level __bool__ and property

This commit is contained in:
pukkandan 2023-02-08 07:25:36 +05:30
commit 754c84e2e4
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
2 changed files with 64 additions and 37 deletions

View file

@ -8,7 +8,7 @@ from .compat_utils import passthrough_module
# XXX: Implement this the same way as other DeprecationWarnings without circular import
passthrough_module(__name__, '._legacy', callback=lambda attr: warnings.warn(
DeprecationWarning(f'{__name__}.{attr} is deprecated'), stacklevel=3))
DeprecationWarning(f'{__name__}.{attr} is deprecated'), stacklevel=5))
# HTMLParseError has been deprecated in Python 3.3 and removed in