1 """Deprecated - New code should avoid these"""
4 from .compat_utils
import passthrough_module
6 # XXX: Implement this the same way as other DeprecationWarnings without circular import
7 passthrough_module(__name__
, '.._legacy', callback
=lambda attr
: warnings
.warn(
8 DeprecationWarning(f
'{__name__}.{attr} is deprecated'), stacklevel
=6))
11 import functools
# noqa: F401
15 compat_os_name
= os
.name
16 compat_realpath
= os
.path
.realpath
19 def compat_shlex_quote(s
):
20 from ..utils
import shell_quote