From: Jack Jansen Date: Fri, 7 Mar 2003 15:36:49 +0000 (+0000) Subject: Filter out macfs warning. X-Git-Tag: v2.3c1~1535 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1c8501e5b4e495f88633802f27c6f08ca42e6f01;p=thirdparty%2FPython%2Fcpython.git Filter out macfs warning. --- diff --git a/Lib/plat-mac/macostools.py b/Lib/plat-mac/macostools.py index 1a59354d0745..3644e7ec0766 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()