Filter out macfs warning.

This commit is contained in:
Jack Jansen 2003-03-07 15:36:49 +00:00
parent f9347782e0
commit 1c8501e5b4
1 changed files with 2 additions and 0 deletions

View 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()