docs/userguide/ch5_paragraphs.py
branchpy33
changeset 3721 0c93dd8ff567
parent 3617 ae5744e97c42
child 3723 99aa837b6703
--- a/docs/userguide/ch5_paragraphs.py	Fri Feb 15 15:54:16 2013 +0000
+++ b/docs/userguide/ch5_paragraphs.py	Tue Apr 30 14:20:22 2013 +0100
@@ -188,14 +188,14 @@
 def getAttrs(A):
     _addAttributeNames(A)
     S={}
-    for k, v in A.items():
+    for k, v in list(A.items()):
         a = v[0]
         if a not in S:
             S[a] = k
         else:
             S[a] = "%s, %s" %(S[a],k)
 
-    K = S.keys()
+    K = list(S.keys())
     K.sort()
     D=[('Attribute','Synonyms')]
     for k in K: