From 5a8aa1ba2e32b60f89838169bb774470d2727738 Mon Sep 17 00:00:00 2001 From: Greg Ward Date: Sat, 5 Aug 2000 01:25:24 +0000 Subject: 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. --- Lib/distutils/util.py | 20 -------------------- 1 file changed, 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 -- cgit v0.12