Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5a8aa1b

Browse files
committed
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.
1 parent ff7b562 commit 5a8aa1b

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

Lib/distutils/util.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,6 @@
1111
from distutils.errors import *
1212
from distutils.spawn import spawn
1313

14-
# for backwards compatibility:
15-
from distutils.file_util import *
16-
from distutils.dir_util import *
17-
from distutils.dep_util import *
18-
from distutils.archive_util import *
19-
20-
21-
# More backwards compatibility hacks
22-
def extend (list, new_list):
23-
"""Appends the list 'new_list' to 'list', just like the 'extend()'
24-
list method does in Python 1.5.2 -- but this works on earlier
25-
versions of Python too."""
26-
27-
if hasattr (list, 'extend'):
28-
list.extend (new_list)
29-
else:
30-
list[len(list):] = new_list
31-
32-
# extend ()
33-
3414

3515
def get_platform ():
3616
"""Return a string (suitable for tacking onto directory names) that

0 commit comments

Comments
 (0)