src/reportlab/lib/attrmap.py
branchpy33
changeset 3791 fb8d3d2f8704
parent 3763 d079e73fb7b0
child 3794 398ea04239b5
--- a/src/reportlab/lib/attrmap.py	Mon Nov 18 17:51:20 2013 +0000
+++ b/src/reportlab/lib/attrmap.py	Tue Nov 19 12:13:18 2013 +0000
@@ -74,10 +74,11 @@
             else:
                 if not isSeq(BASE): BASE = (BASE,)
                 for B in BASE:
-                    if hasattr(B,'_attrMap'):
-                        data.update(B._attrMap)
+                    am = getattr(B,'_attrMap',self)
+                    if am is not self:
+                        if am: data.update(am)
                     else:
-                        raise ValueError('BASE=%s has wrong kind of value' % repr(B))
+                        raise ValueError('BASE=%s has wrong kind of value' % ascii(B))
 
         dict.__init__(self,data)
         self.remove(UNWANTED)