mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
149a8993b0
commit
cfc4902b2a
1 changed files with 7 additions and 0 deletions
|
@ -50,6 +50,13 @@ import errno
|
|||
import time
|
||||
import struct
|
||||
|
||||
if sys.platform == 'mac':
|
||||
# This module needs work for MacOS9, especially in the area of pathname
|
||||
# handling. In many places it is assumed a simple substitution of / by the
|
||||
# local os.path.sep is good enough to convert pathnames, but this does not
|
||||
# work with the mac rooted:path:name versus :nonrooted:path:name syntax
|
||||
raise ImportError, "tarfile does not work for platform==mac"
|
||||
|
||||
try:
|
||||
import grp, pwd
|
||||
except ImportError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue