[Python-checkins] CVS: distutils/distutils util.py,1.41,1.42
Greg Ward
python-dev@python.org
Fri, 4 Aug 2000 18:25:27 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/PC config.h,1.35,1.35.2.1
- Next message: [Python-checkins] CVS: distutils/distutils/command bdist_dumb.py,1.9,1.10 bdist_rpm.py,1.14,1.15 bdist_wininst.py,1.4,1.5 clean.py,1.7,1.8 install.py,1.39,1.40 install_lib.py,1.26,1.27 sdist.py,1.41,1.42
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/distutils/distutils
In directory slayer.i.sourceforge.net:/tmp/cvs-serv5092
Modified Files:
util.py
Log Message:
Drop the 'extend()' function -- old 1.5.1 compatibility hack that
wasn't actually used anywhere.
Drop the "from xxx_util import*" backwards compability hacks.
Index: util.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/util.py,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -r1.41 -r1.42
*** util.py 2000/08/02 01:37:30 1.41
--- util.py 2000/08/05 01:25:24 1.42
***************
*** 12,35 ****
from distutils.spawn import spawn
- # for backwards compatibility:
- from distutils.file_util import *
- from distutils.dir_util import *
- from distutils.dep_util import *
- from distutils.archive_util import *
-
-
- # More backwards compatibility hacks
- def extend (list, new_list):
- """Appends the list 'new_list' to 'list', just like the 'extend()'
- list method does in Python 1.5.2 -- but this works on earlier
- versions of Python too."""
-
- if hasattr (list, 'extend'):
- list.extend (new_list)
- else:
- list[len(list):] = new_list
-
- # extend ()
-
def get_platform ():
--- 12,15 ----
- Previous message: [Python-checkins] CVS: python/dist/src/PC config.h,1.35,1.35.2.1
- Next message: [Python-checkins] CVS: distutils/distutils/command bdist_dumb.py,1.9,1.10 bdist_rpm.py,1.14,1.15 bdist_wininst.py,1.4,1.5 clean.py,1.7,1.8 install.py,1.39,1.40 install_lib.py,1.26,1.27 sdist.py,1.41,1.42
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]