PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /proc/self/root/opt/saltstack/salt/extras-3.10/rads/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //proc/self/root/opt/saltstack/salt/extras-3.10/rads/compat.py |
"""Decorator for 2.7 compat functions""" import functools import warnings WARNED = [] class RadsDeprecation(DeprecationWarning): """Subclass of DeprecationWarning for Rads""" def deprecated(new=None): """Decorator for 2.7 compat functions""" def _deprecated(func): @functools.wraps(func) def _deprecated_wrap(*args, **kwargs): name = f"{func.__module__}.{func.__name__}" if name not in WARNED: msg = f'{name} is deprecated' if new: msg = '%s. See %s' % (msg, new) warnings.warn(msg, RadsDeprecation, 4) WARNED.append(name) return func(*args, **kwargs) return _deprecated_wrap return _deprecated