diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-03-07 13:37:32 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-03-07 13:37:32 (GMT) |
commit | cfc4902b2ada654585e3e2225eebe9c4737dccc2 (patch) | |
tree | 7755b3023e17092c28fd6616ac4d8f9915766a24 /Lib/tarfile.py | |
parent | 149a8993b0cc7a4c3a252b9387a28b8c75bc1116 (diff) | |
download | cpython-cfc4902b2ada654585e3e2225eebe9c4737dccc2.zip cpython-cfc4902b2ada654585e3e2225eebe9c4737dccc2.tar.gz cpython-cfc4902b2ada654585e3e2225eebe9c4737dccc2.tar.bz2 |
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.
Diffstat (limited to 'Lib/tarfile.py')
-rw-r--r-- | Lib/tarfile.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/tarfile.py b/Lib/tarfile.py index 270c2b2..0f088a3 100644 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -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: |