summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/plat-mac/macostools.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/plat-mac/macostools.py b/Lib/plat-mac/macostools.py
index 1a59354d07..3644e7ec07 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()