From: Greg Ward Date: Wed, 2 Aug 2000 00:37:32 +0000 (+0000) Subject: Ditched 'abspath()' -- don't need 1.5.1 compatability hacks anymore. X-Git-Tag: v2.0b1~630 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bb56190422f50f9cc976f439facb82a0fd649775;p=thirdparty%2FPython%2Fcpython.git Ditched 'abspath()' -- don't need 1.5.1 compatability hacks anymore. --- diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index 0bff3a5b8533..d69626e1f155 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py @@ -18,16 +18,6 @@ from distutils.dep_util import * from distutils.archive_util import * -# Need to define 'abspath()', because it was new with Python 1.5.2 -if hasattr (os.path, 'abspath'): - abspath = os.path.abspath -else: - def abspath(path): - if not os.path.isabs(path): - path = os.path.join(os.getcwd(), path) - return os.path.normpath(path) - - # More backwards compatibility hacks def extend (list, new_list): """Appends the list 'new_list' to 'list', just like the 'extend()'