]> granicus.if.org Git - python/commitdiff
Filter out macfs warning.
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 7 Mar 2003 15:36:49 +0000 (15:36 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 7 Mar 2003 15:36:49 +0000 (15:36 +0000)
Lib/plat-mac/macostools.py

index 1a59354d07450786f745c01d1ead32e4965c04d5..3644e7ec0766423a672ee097d2d31773a2fdf880 100644 (file)
@@ -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()