tools/docco/graphdocpy.py
branchpy33
changeset 3723 99aa837b6703
parent 3721 0c93dd8ff567
child 3794 398ea04239b5
--- a/tools/docco/graphdocpy.py	Sun Feb 17 12:13:56 2013 +0000
+++ b/tools/docco/graphdocpy.py	Tue Apr 30 14:28:14 2013 +0100
@@ -26,9 +26,9 @@
 from reportlab.lib.pagesizes import A4
 from reportlab.lib import colors
 from reportlab.lib.enums import TA_CENTER, TA_LEFT
-from reportlab.lib.utils import getStringIO
+from reportlab.lib.utils import getBytesIO
 #from StringIO import StringIO
-#getStringIO=StringIO
+#getBytesIO=StringIO
 from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
 from reportlab.pdfgen import canvas
 from reportlab.platypus.flowables import Flowable, Spacer
@@ -470,7 +470,7 @@
         for key in keys:
             value = props[key]
 
-            f = getStringIO()
+            f = getBytesIO()
             pprint.pprint(value, f)
             value = f.getvalue()[:-1]
             valueLines = string.split(value, '\n')
@@ -654,7 +654,7 @@
             value = props[key]
 
             # Method 3
-            f = getStringIO()
+            f = getBytesIO()
             pprint.pprint(value, f)
             value = f.getvalue()[:-1]
             valueLines = string.split(value, '\n')