mirror of https://github.com/python/cpython
We're long past worrying about Python versions older than 1.5.2;
remove old compatibility definition of os.path.abspath().
This commit is contained in:
parent
1dc3bb4722
commit
94b3463f7e
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue