From 24b8501d4b01f80181820aea8ed23472474db79a Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 4 Nov 2019 00:32:33 +0200 Subject: [PATCH] Remove handling for pre-3.3 wide/narrow builds --- src/PIL/Image.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 0374d1583..2d73d8f53 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -88,22 +88,6 @@ except ImportError as v: ) elif str(v).startswith("The _imaging extension"): warnings.warn(str(v), RuntimeWarning) - elif "Symbol not found: _PyUnicodeUCS2_" in str(v): - # should match _PyUnicodeUCS2_FromString and - # _PyUnicodeUCS2_AsLatin1String - warnings.warn( - "The _imaging extension was built for Python with UCS2 support; " - "recompile Pillow or build Python --without-wide-unicode. ", - RuntimeWarning, - ) - elif "Symbol not found: _PyUnicodeUCS4_" in str(v): - # should match _PyUnicodeUCS4_FromString and - # _PyUnicodeUCS4_AsLatin1String - warnings.warn( - "The _imaging extension was built for Python with UCS4 support; " - "recompile Pillow or build Python --with-wide-unicode. ", - RuntimeWarning, - ) # Fail here anyway. Don't let people run with a mostly broken Pillow. # see docs/porting.rst raise