@@ -119,11 +119,11 @@ def _get_aligned_offsets(hd_list, height, align="baseline"):
119119 """
120120
121121 if height is None :
122- height = max ([ h for h , d in hd_list ] )
122+ height = max (h for h , d in hd_list )
123123
124124 if align == "baseline" :
125- height_descent = max ([ h - d for h , d in hd_list ] )
126- descent = max ([ d for h , d in hd_list ] )
125+ height_descent = max (h - d for h , d in hd_list )
126+ descent = max (d for h , d in hd_list )
127127 height = height_descent + descent
128128 offsets = [0. for h , d in hd_list ]
129129 elif align in ["left" , "top" ]:
@@ -465,8 +465,8 @@ def get_extent_offsets(self, renderer):
465465 return 2 * pad , 2 * pad , pad , pad , []
466466
467467 if self .height is None :
468- height_descent = max ([ h - yd for w , h , xd , yd in whd_list ] )
469- ydescent = max ([ yd for w , h , xd , yd in whd_list ] )
468+ height_descent = max (h - yd for w , h , xd , yd in whd_list )
469+ ydescent = max (yd for w , h , xd , yd in whd_list )
470470 height = height_descent + ydescent
471471 else :
472472 height = self .height - 2 * pad # width w/o pad
0 commit comments