reportlab: remove 2.3/2.4 blockers
authorrgbecker
Fri, 23 Jan 2009 16:31:04 +0000
changeset 3083 95f7752b0284
parent 3082 b7ceb99bcb86
child 3084 fa5bd7f45ce1
reportlab: remove 2.3/2.4 blockers
src/reportlab/lib/utils.py
src/reportlab/platypus/doctemplate.py
--- a/src/reportlab/lib/utils.py	Fri Jan 23 16:12:15 2009 +0000
+++ b/src/reportlab/lib/utils.py	Fri Jan 23 16:31:04 2009 +0000
@@ -677,13 +677,13 @@
                 return None
 
 class LazyImageReader(ImageReader): 
-    @property 
     def fp(self): 
         return open_for_read(self.fileName, 'b') 
+    fp=property(fp) 
 
-    @property 
     def _image(self):
         return self._read_image(self.fp)
+    _image=property(_image) 
 
 def getImageData(imageFileName):
     "Get width, height and RGB pixels from image file.  Wraps Java/PIL"
--- a/src/reportlab/platypus/doctemplate.py	Fri Jan 23 16:12:15 2009 +0000
+++ b/src/reportlab/platypus/doctemplate.py	Fri Jan 23 16:31:04 2009 +0000
@@ -35,6 +35,10 @@
 from reportlab.rl_config import defaultPageSize, verbose
 import reportlab.lib.sequencer
 from reportlab.pdfgen import canvas
+try:
+    set
+except NameError:
+    from sets import Set as set
 
 from types import *
 import sys