From fb19834d21403e854edddf1e24a0cedde3b307fc Mon Sep 17 00:00:00 2001 From: markmiscavage Date: Tue, 31 Oct 2017 09:31:02 -0700 Subject: [PATCH] fix for #272 on SmartOS. Stripping whitespace from string.whitespace. --- PIL/PpmImagePlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/PpmImagePlugin.py b/PIL/PpmImagePlugin.py index bd1b7a364..dd6be3106 100644 --- a/PIL/PpmImagePlugin.py +++ b/PIL/PpmImagePlugin.py @@ -24,7 +24,7 @@ __version__ = "0.2" # # -------------------------------------------------------------------- -b_whitespace = string.whitespace +b_whitespace = string.whitespace.strip() try: import locale locale_lang, locale_enc = locale.getlocale()