Fixed pickling of iTXt class with protocol > 1

This commit is contained in:
Andrew Murray 2019-01-02 18:56:54 +11:00
parent 9dbaf92f3e
commit f8df6d1687

View File

@ -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