Skip to content

Commit 9940ba3

Browse files
committed
Pre-deprecate LogOnAccess
1 parent f6e1733 commit 9940ba3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

advanced_descriptors/log_on_access.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import sys
2222
import traceback
2323
import typing
24+
import warnings
2425

2526
_logger: logging.Logger = logging.getLogger(__name__)
2627

@@ -162,6 +163,7 @@ def __init__(
162163
>>> logs[27] == 'Traceback (most recent call last):'
163164
True
164165
"""
166+
warnings.warn("LogOnAccess has been ported to logwrap with extended repr logic.", PendingDeprecationWarning)
165167
super(LogOnAccess, self).__init__(fget=fget, fset=fset, fdel=fdel, doc=doc)
166168

167169
if logger is None or isinstance(logger, logging.Logger):

0 commit comments

Comments
 (0)