Commit 2dd037f3 authored by Greg Ward's avatar Greg Ward

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.
parent b51aeba6
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment