]> granicus.if.org Git - python/commitdiff
Make tarfile raise ImportError on MacOS9. The pathname handling needs work, and I...
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 7 Mar 2003 13:37:32 +0000 (13:37 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 7 Mar 2003 13:37:32 +0000 (13:37 +0000)
Lib/tarfile.py

index 270c2b2b8f570556aafa42748fe7a8b51cf88769..0f088a3718cadadf92b82236bb605788fb58c28d 100644 (file)
@@ -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: