mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-03 19:45:56 +03:00
Changing bytes variable name not to squeeze bytes type
This commit is contained in:
parent
4d136d94ce
commit
028e63865e
|
@ -151,8 +151,8 @@ class FreeTypeFont:
|
|||
if isStringType(font):
|
||||
self.font = core.getfont(font, size, index, encoding)
|
||||
else:
|
||||
bytes = font.read()
|
||||
self.font = core.getfont("", size, index, encoding, bytes)
|
||||
font_bytes = font.read()
|
||||
self.font = core.getfont("", size, index, encoding, font_bytes)
|
||||
|
||||
def getname(self):
|
||||
return self.font.family, self.font.style
|
||||
|
|
Loading…
Reference in New Issue
Block a user