Add missing classmethod decorator

This commit is contained in:
Marek Marczykowski-Górecki 2017-11-21 05:34:01 +01:00
parent 0a7d2c0789
commit 6cb980f5be
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -174,6 +174,7 @@ get_from_stream(), get_from_vm(), get_xdg_icon_from_vm(), get_through_dvm()'''
return cls(rgba=rgba, size=size) return cls(rgba=rgba, size=size)
@classmethod
def load_from_file_pil(cls, filename): def load_from_file_pil(cls, filename):
'''Loads image from local file using PIL.''' '''Loads image from local file using PIL.'''
img = PIL.Image.open(filename) img = PIL.Image.open(filename)