**Source code:** :source:`Lib/macpath.py`
+.. deprecated-removed:: 3.7 3.8
+
--------------
This module is the Mac OS 9 (and earlier) implementation of the :mod:`os.path`
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",
-import macpath
from test import test_genericpath
import unittest
+import warnings
+
+
+with warnings.catch_warnings():
+ warnings.filterwarnings("ignore", "the macpath module is deprecated",
+ DeprecationWarning)
+ import macpath
class MacPathTestCase(unittest.TestCase):