src/reportlab/lib/testutils.py
branchpy33
changeset 3794 398ea04239b5
parent 3721 0c93dd8ff567
child 3862 272e650eecf5
--- a/src/reportlab/lib/testutils.py	Tue Nov 19 12:21:04 2013 +0000
+++ b/src/reportlab/lib/testutils.py	Tue Nov 19 13:50:34 2013 +0000
@@ -9,7 +9,7 @@
 nothing more than "reportlab.whatever..."
 """
 
-import sys, os, string, fnmatch, copy, re
+import sys, os, fnmatch, copy, re
 from configparser import ConfigParser
 import unittest
 
@@ -106,7 +106,6 @@
     """
 
     join = os.path.join
-    split = string.split
 
     # If CVS subfolder doesn't exist return empty list.
     try:
@@ -119,7 +118,7 @@
     for line in f.readlines():
         if folders and line[0] == 'D' \
            or files and line[0] != 'D':
-            entry = split(line, '/')[1]
+            entry = line.split('/')[1]
             if entry:
                 allEntries.append(join(folder, entry))
 
@@ -139,7 +138,7 @@
 
         # This seems to allow for newlines inside values
         # of the config file, but be careful!!
-        val = string.replace(value, '\n', '')
+        val = value.replace('\n', '')
 
         if self.pat.match(val):
             return eval(val)