[Python-checkins] python/dist/src/Doc/tools mkhowto,1.41,1.42
fdrake at users.sourceforge.net
fdrake at users.sourceforge.net
Wed Oct 1 00:03:56 EDT 2003
Update of /cvsroot/python/python/dist/src/Doc/tools
In directory sc8-pr-cvs1:/tmp/cvs-serv7708
Modified Files:
mkhowto
Log Message:
We're long past worrying about Python versions older than 1.5.2;
remove old compatibility definition of os.path.abspath().
Index: mkhowto
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/mkhowto,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** mkhowto 27 Sep 2003 19:35:37 -0000 1.41
--- mkhowto 1 Oct 2003 04:03:54 -0000 1.42
***************
*** 47,61 ****
- 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)
--- 47,50 ----
More information about the Python-checkins
mailing list