tests/test_pdfgen_pycanvas.py
branchpy33
changeset 3794 398ea04239b5
parent 3721 0c93dd8ff567
child 3800 e8547b00eb59
--- a/tests/test_pdfgen_pycanvas.py	Tue Nov 19 12:21:04 2013 +0000
+++ b/tests/test_pdfgen_pycanvas.py	Tue Nov 19 13:50:34 2013 +0000
@@ -6,7 +6,7 @@
 #tests and documents new low-level canvas and the pycanvas module to output Python source code.
 from reportlab.lib.testutils import setOutDir,makeSuiteForClasses, outputfile, printLocation
 setOutDir(__name__)
-import string, os, unittest
+import os, unittest
 from reportlab.pdfgen import pycanvas   # gmcm 2000/10/13, pdfgen now a package
 from reportlab.lib.units import inch, cm
 from reportlab.lib import colors
@@ -109,9 +109,9 @@
 
     def _getHeight(self):
         "splits into lines"
-        self.comment1lines = string.split(self.comment1, '\n')
-        self.codelines = string.split(self.code, '\n')
-        self.comment2lines = string.split(self.comment2, '\n')
+        self.comment1lines = self.comment1.split('\n')
+        self.codelines = self.code.split('\n')
+        self.comment2lines = self.comment2.split('\n')
         textheight = (len(self.comment1lines) +
                 len(self.code) +
                 len(self.comment2lines) +