src/reportlab/graphics/renderbase.py
branchpy33
changeset 3723 99aa837b6703
parent 3721 0c93dd8ff567
child 4132 28379377462b
--- a/src/reportlab/graphics/renderbase.py	Sun Feb 17 12:13:56 2013 +0000
+++ b/src/reportlab/graphics/renderbase.py	Tue Apr 30 14:28:14 2013 +0100
@@ -37,7 +37,7 @@
     to set the pen color to red in between. Returns the effect
     the given shape would have on the graphics state"""
     delta = {}
-    for (prop, value) in list(shape.getProperties().items()):
+    for prop, value in shape.getProperties().items():
         if prop in STATE_DEFAULTS:
             delta[prop] = value
     return delta
@@ -72,7 +72,7 @@
         through getState()"""
 
         newstate = self._combined[-1].copy()
-        for (key, value) in list(delta.items()):
+        for key, value in delta.items():
             if key == 'transform':  #do cumulative matrix
                 newstate['transform'] = delta['transform']
                 newstate['ctm'] = mmult(self._combined[-1]['ctm'], delta['transform'])
@@ -97,7 +97,7 @@
         #need to diff this against the last one in the state
         reverseDelta = {}
         #print 'pop()...'
-        for key, curValue in list(lastDelta.items()):
+        for key, curValue in lastDelta.items():
             #print '   key=%s, value=%s' % (key, curValue)
             prevValue = newState[key]
             if prevValue != curValue:
@@ -230,7 +230,7 @@
         parent.
         
         """
-        for (key, value) in list(node.__dict__.items()):
+        for key, value in node.__dict__.items():
             if isinstance(value, DerivedValue):
                 #just replace with default for key?
                 #print '    fillDerivedValues(%s)' % key