[Python-checkins] distutils2: Remove obsolete references to Mac OS 9, unsupported since Python 2.4

tarek.ziade python-checkins at python.org
Sun Aug 8 11:50:45 CEST 2010


tarek.ziade pushed a33cd046903d to distutils2:

http://hg.python.org/distutils2/rev/a33cd046903d
changeset:   420:a33cd046903d
user:        ?ric Araujo <merwok at netwok.org>
date:        Sat Jul 31 18:11:30 2010 +0200
summary:     Remove obsolete references to Mac OS 9, unsupported since Python 2.4
files:       src/distutils2/_backport/tarfile.py, src/distutils2/util.py

diff --git a/src/distutils2/_backport/tarfile.py b/src/distutils2/_backport/tarfile.py
--- a/src/distutils2/_backport/tarfile.py
+++ b/src/distutils2/_backport/tarfile.py
@@ -56,13 +56,6 @@
 if not hasattr(os, 'SEEK_SET'):
     os.SEEK_SET = 0
 
-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:
diff --git a/src/distutils2/util.py b/src/distutils2/util.py
--- a/src/distutils2/util.py
+++ b/src/distutils2/util.py
@@ -117,15 +117,6 @@
             path = path[1:]
         return os.path.join(new_root, path)
 
-    elif os.name == 'mac':
-        if not os.path.isabs(pathname):
-            return os.path.join(new_root, pathname)
-        else:
-            # Chop off volume name from start of path
-            elements = pathname.split(":", 1)
-            pathname = ":" + elements[1]
-            return os.path.join(new_root, pathname)
-
     else:
         raise DistutilsPlatformError("nothing known about "
                                      "platform '%s'" % os.name)

--
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list