diff options
author | Greg Ward <gward@python.net> | 2000-08-05 01:25:24 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-08-05 01:25:24 (GMT) |
commit | 5a8aa1ba2e32b60f89838169bb774470d2727738 (patch) | |
tree | d8bd5f3df61ef71df115ca504bba817b950d94a6 /Lib | |
parent | ff7b562bc67e299be96909ea98abd621416b169b (diff) | |
download | cpython-5a8aa1ba2e32b60f89838169bb774470d2727738.zip cpython-5a8aa1ba2e32b60f89838169bb774470d2727738.tar.gz cpython-5a8aa1ba2e32b60f89838169bb774470d2727738.tar.bz2 |
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.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/util.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index 37cd4b5..96266d2 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py @@ -11,26 +11,6 @@ import sys, os, string, re, shutil from distutils.errors import * 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 (): """Return a string (suitable for tacking onto directory names) that |