src/reportlab/lib/testutils.py
branchrtl-support
changeset 3467 4f25b3a34c5f
parent 3076 6a959200100d
--- a/src/reportlab/lib/testutils.py	Mon Nov 23 13:27:57 2009 +0000
+++ b/src/reportlab/lib/testutils.py	Thu Oct 21 10:34:13 2010 +0000
@@ -43,7 +43,7 @@
             os.makedirs(_OUTDIR)
         except:
             pass
-        map(sys.argv.remove,D)
+        for d in D: sys.argv.remove(d)
     else:
         assert name=='__main__',"setOutDir should only be called in the main script"
         scriptDir=os.path.dirname(sys.argv[0])
@@ -135,7 +135,7 @@
     def getstringlist(self, section, option):
         "Coerce option to a list of strings or return unchanged if that fails."
 
-        value = apply(ConfigParser.get, (self, section, option))
+        value = ConfigParser.get(self, section, option)
 
         # This seems to allow for newlines inside values
         # of the config file, but be careful!!
@@ -200,7 +200,7 @@
     "An restricted directory tree iterator."
 
     def __init__(self, directory, pattern='*', ignore=None):
-        apply(GlobDirectoryWalker.__init__, (self, directory, pattern))
+        GlobDirectoryWalker.__init__(self, directory, pattern)
 
         if ignore == None:
             ignore = []