fix python3 bug in DDIndenter.__getattr__; version --> 3.5.41
authorrobin
Wed, 04 Mar 2020 13:11:45 +0000
changeset 4579 e2a0a54bfb87
parent 4578 325c308a1c36
child 4580 71e6dc9c6425
fix python3 bug in DDIndenter.__getattr__; version --> 3.5.41
CHANGES.md
src/reportlab/__init__.py
src/reportlab/platypus/flowables.py
--- a/CHANGES.md	Fri Feb 28 12:50:20 2020 +0000
+++ b/CHANGES.md	Wed Mar 04 13:11:45 2020 +0000
@@ -11,6 +11,10 @@
 The contributors lists are in no order and apologies to those accidentally not
 mentioned. If we missed you, please let us know!
 
+RELEASE 3.5.41	 4/03/2020
+--------------------------
+	* fix python3 bug in DDIndenter.__getattr__
+
 RELEASE 3.5.40	28/02/2020
 --------------------------
 	* fix broken (by robin) simple bar lables found by Djan
--- a/src/reportlab/__init__.py	Fri Feb 28 12:50:20 2020 +0000
+++ b/src/reportlab/__init__.py	Wed Mar 04 13:11:45 2020 +0000
@@ -1,9 +1,9 @@
 #Copyright ReportLab Europe Ltd. 2000-2018
 #see license.txt for license details
 __doc__="""The Reportlab PDF generation library."""
-Version = "3.5.40"
+Version = "3.5.41"
 __version__=Version
-__date__='20200228'
+__date__='20200304'
 
 import sys, os
 
--- a/src/reportlab/platypus/flowables.py	Fri Feb 28 12:50:20 2020 +0000
+++ b/src/reportlab/platypus/flowables.py	Wed Mar 04 13:11:45 2020 +0000
@@ -2033,7 +2033,7 @@
                 return self.__dict__[a]
             except KeyError:
                 if a not in ('spaceBefore','spaceAfter'):
-                    raise
+                    raise AttributeError('%r has no attribute %s' % (self,a))
         return getattr(self._flowable,a)
 
     def __setattr__(self,a,v):