mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Filter out macfs warning.
This commit is contained in:
parent
f9347782e0
commit
1c8501e5b4
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue