Merge pull request #7025 from Auto-5/patch-2

This commit is contained in:
Hugo van Kemenade 2023-03-18 19:37:49 +02:00 committed by GitHub
commit 16975a5dca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -423,7 +423,6 @@ class ImageDraw:
self.draw.draw_rectangle(right, ink, 1)
def _multiline_check(self, text):
"""Draw text."""
split_character = "\n" if isinstance(text, str) else b"\n"
return split_character in text