diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-05-15 11:01:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-15 11:01:21 +0200 |
commit | 89a1c93f046f9726310f8362227be7b8e50eea22 (patch) | |
tree | 5c862a5d2a6abab0ad25e159865720fb8364661d /Lib/macpath.py | |
parent | 981096f98b9c131594b0ac85ad01b63cbd11aa0a (diff) | |
download | cpython-git-89a1c93f046f9726310f8362227be7b8e50eea22.tar.gz |
bpo-9850: Deprecate the macpath module (#1540)
Co-Authored-By: Chi Hsuan Yen <yan12125@gmail.com>.
Diffstat (limited to 'Lib/macpath.py')
-rw-r--r-- | Lib/macpath.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/macpath.py b/Lib/macpath.py index a90d1053bc..f85a91435b 100644 --- a/Lib/macpath.py +++ b/Lib/macpath.py @@ -4,6 +4,10 @@ import os from stat import * import genericpath from genericpath import * +import warnings + +warnings.warn('the macpath module is deprecated in 3.7 and will be removed ' + 'in 3.8', DeprecationWarning, stacklevel=2) __all__ = ["normcase","isabs","join","splitdrive","split","splitext", "basename","dirname","commonprefix","getsize","getmtime", |