Commit 1c8501e5 authored by Jack Jansen's avatar Jack Jansen

Filter out macfs warning.

parent f9347782
...@@ -66,6 +66,8 @@ def mkdirs(dst): ...@@ -66,6 +66,8 @@ def mkdirs(dst):
def touched(dst): def touched(dst):
"""Tell the finder a file has changed. No-op on MacOSX.""" """Tell the finder a file has changed. No-op on MacOSX."""
if sys.platform != 'mac': return if sys.platform != 'mac': return
import warnings
warnings.filterwarnings("ignore", "macfs.*", DeprecationWarning, __name__)
import macfs import macfs
file_fss = macfs.FSSpec(dst) file_fss = macfs.FSSpec(dst)
vRefNum, dirID, name = file_fss.as_tuple() vRefNum, dirID, name = file_fss.as_tuple()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment