src/reportlab/platypus/doctemplate.py
changeset 3272 10f6899a18a5
parent 3241 575302ed6ab9
child 3323 8fe71f699df9
--- a/src/reportlab/platypus/doctemplate.py	Fri Nov 27 16:35:29 2009 +0000
+++ b/src/reportlab/platypus/doctemplate.py	Wed Dec 02 10:58:51 2009 +0000
@@ -245,6 +245,7 @@
     """
     def __init__(self,id=None,frames=[],onPage=_doNothing, onPageEnd=_doNothing,
                  pagesize=None):
+        frames = frames or []
         if type(frames) not in (ListType,TupleType): frames = [frames]
         assert filter(lambda x: not isinstance(x,Frame), frames)==[], "frames argument error"
         self.id = id