diff --git a/Lib/plat-mac/macostools.py b/Lib/plat-mac/macostools.py index 1a59354d074..3644e7ec076 100644 --- a/Lib/plat-mac/macostools.py +++ b/Lib/plat-mac/macostools.py @@ -66,6 +66,8 @@ def mkdirs(dst): def touched(dst): """Tell the finder a file has changed. No-op on MacOSX.""" if sys.platform != 'mac': return + import warnings + warnings.filterwarnings("ignore", "macfs.*", DeprecationWarning, __name__) import macfs file_fss = macfs.FSSpec(dst) vRefNum, dirID, name = file_fss.as_tuple()