mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Ditched 'abspath()' -- don't need 1.5.1 compatability hacks anymore.
This commit is contained in:
parent
c6a18a5d65
commit
bb56190422
1 changed files with 0 additions and 10 deletions
|
@ -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()'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue