mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
bpo-9850: Deprecate the macpath module (#1540)
Co-Authored-By: Chi Hsuan Yen <yan12125@gmail.com>.
This commit is contained in:
parent
981096f98b
commit
89a1c93f04
4 changed files with 15 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue