mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 12:17:14 +03:00
Fixed pickling of iTXt class with protocol > 1
This commit is contained in:
parent
9dbaf92f3e
commit
f8df6d1687
|
@ -192,7 +192,7 @@ class iTXt(str):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def __new__(cls, text, lang, tkey):
|
def __new__(cls, text, lang=None, tkey=None):
|
||||||
"""
|
"""
|
||||||
:param cls: the class to use when creating the instance
|
:param cls: the class to use when creating the instance
|
||||||
:param text: value for this key
|
:param text: value for this key
|
||||||
|
|
Loading…
Reference in New Issue
Block a user