--- a/src/reportlab/pdfbase/_can_cmap_data.py Sun Feb 17 12:13:56 2013 +0000
+++ b/src/reportlab/pdfbase/_can_cmap_data.py Tue Apr 30 14:28:14 2013 +0100
@@ -29,7 +29,7 @@
buf = []
buf.append('widthsByUnichar = {}')
- for (fontName, (language, encName)) in list(defaultUnicodeEncodings.items()):
+ for fontName, (language, encName) in defaultUnicodeEncodings.items():
print('handling %s : %s : %s' % (fontName, language, encName))
#this does just about all of it for us, as all the info
@@ -39,7 +39,7 @@
widthsByCID = font.face._explicitWidths
cmap = font.encoding._cmap
nonStandardWidthsByUnichar = {}
- for (codePoint, cid) in list(cmap.items()):
+ for codePoint, cid in cmap.items():
width = widthsByCID.get(cid, 1000)
if width != 1000:
nonStandardWidthsByUnichar[chr(codePoint)] = width