docs/userguide/ch5_paragraphs.py
changeset 3326 ce725978d11c
parent 3089 725016820c37
child 3617 ae5744e97c42
--- a/docs/userguide/ch5_paragraphs.py	Sat Feb 06 09:24:08 2010 +0000
+++ b/docs/userguide/ch5_paragraphs.py	Mon Feb 08 18:17:33 2010 +0000
@@ -190,7 +190,7 @@
     S={}
     for k, v in A.items():
         a = v[0]
-        if not S.has_key(a):
+        if a not in S:
             S[a] = k
         else:
             S[a] = "%s, %s" %(S[a],k)
@@ -204,7 +204,7 @@
     rows=len(D)*[None]
     return D,cols,rows
 
-t=apply(Table,getAttrs(_paraAttrMap))
+t=Table(*getAttrs(_paraAttrMap))
 t.setStyle(TableStyle([
             ('FONT',(0,0),(-1,1),'Times-Bold',10,12),
             ('FONT',(0,1),(-1,-1),'Courier',8,8),
@@ -356,7 +356,7 @@
 characters but we suggest first trying the Unicode bullet ($•$), which may
 be written as $•$,  $•$ or (in utf8) $\\xe2\\x80\\xa2$):""")
 
-t=apply(Table,getAttrs(_bulletAttrMap))
+t=Table(*getAttrs(_bulletAttrMap))
 t.setStyle([
             ('FONT',(0,0),(-1,1),'Times-Bold',10,12),
             ('FONT',(0,1),(-1,-1),'Courier',8,8),