Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cfc4902

Browse files
committed
Make tarfile raise ImportError on MacOS9. The pathname handling needs work, and I don't have time to fix it. I'll file a bug report.
1 parent 149a899 commit cfc4902

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lib/tarfile.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@
5050
import time
5151
import struct
5252

53+
if sys.platform == 'mac':
54+
# This module needs work for MacOS9, especially in the area of pathname
55+
# handling. In many places it is assumed a simple substitution of / by the
56+
# local os.path.sep is good enough to convert pathnames, but this does not
57+
# work with the mac rooted:path:name versus :nonrooted:path:name syntax
58+
raise ImportError, "tarfile does not work for platform==mac"
59+
5360
try:
5461
import grp, pwd
5562
except ImportError:

0 commit comments

Comments
 (0)