Support module level __bool__ and property
This commit is contained in:
parent
7aefd19afe
commit
754c84e2e4
2 changed files with 64 additions and 37 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue