Skip to content

Commit

Permalink
Removed unnecessary string length check
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Nov 17, 2023
1 parent 28c173f commit 524b823
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/PIL/ImageFont.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,6 @@ def getlength(self, text, *args, **kwargs):
if self.orientation in (Image.Transpose.ROTATE_90, Image.Transpose.ROTATE_270):
msg = "text length is undefined for text rotated by 90 or 270 degrees"
raise ValueError(msg)
_string_length_check(text)
return self.font.getlength(text, *args, **kwargs)


Expand Down

0 comments on commit 524b823

Please sign in to comment.