]> granicus.if.org Git - python/commitdiff
We're long past worrying about Python versions older than 1.5.2;
authorFred Drake <fdrake@acm.org>
Wed, 1 Oct 2003 04:03:54 +0000 (04:03 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 1 Oct 2003 04:03:54 +0000 (04:03 +0000)
remove old compatibility definition of os.path.abspath().

Doc/tools/mkhowto

index e20480248af8a3b0cce60f42531b8fe4627b20aa..8f506c5ba553b8cd4413096ee94d24f82741ae84 100755 (executable)
@@ -46,17 +46,6 @@ import shutil
 import sys
 
 
-if not hasattr(os.path, "abspath"):
-    # Python 1.5.1 or earlier
-    def abspath(path):
-        """Return an absolute path."""
-        if not os.path.isabs(path):
-            path = os.path.join(os.getcwd(), path)
-        return os.path.normpath(path)
-
-    os.path.abspath = abspath
-
-
 MYDIR = os.path.abspath(sys.path[0])
 TOPDIR = os.path.dirname(MYDIR)