From f8df6d1687c2eba376b03b60a59b63c390c7d810 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 2 Jan 2019 18:56:54 +1100 Subject: [PATCH] Fixed pickling of iTXt class with protocol > 1 --- src/PIL/PngImagePlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/PngImagePlugin.py b/src/PIL/PngImagePlugin.py index 04161a56c..57d2f8341 100644 --- a/src/PIL/PngImagePlugin.py +++ b/src/PIL/PngImagePlugin.py @@ -192,7 +192,7 @@ class iTXt(str): """ @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 text: value for this key