Skip to content

Commit

Permalink
Use any() instead of +/or mix (see #80)
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Dec 10, 2013
1 parent 0e02a17 commit effb7d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weasyprint/formatting_structure/boxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@ def rounded_box(self, ratio):
# Fix overlapping curves
# See http://www.w3.org/TR/css3-background/#corner-overlap
ratio = 1
if tlrx + trrx or blrx + brrx:
if any((tlrx, trrx, blrx, brrx)):
ratio = min((
ratio, self.border_width() / max((tlrx + trrx, blrx + brrx))))
if tlry + blry or trry + brry:
if any((tlry, blry, trry, brry)):
ratio = min((
ratio, self.border_height() / max((tlry + blry, trry + brry))))

Expand Down

0 comments on commit effb7d3

Please sign in to comment.