mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Update PpmImagePlugin.py
Bug fix for encoding of b_whitespace
This commit is contained in:
parent
2e4b0903e3
commit
20e7555e59
|
@ -24,7 +24,10 @@ from PIL import Image, ImageFile
|
|||
#
|
||||
# --------------------------------------------------------------------
|
||||
|
||||
b_whitespace = string.whitespace.encode('ascii','ignore')
|
||||
import locale
|
||||
locale_name,locale_id = locale.getlocale()
|
||||
b_whitespace = string.whitespace.decode(locale_id)
|
||||
b_whitespace = b_whitespace.encode('ascii','ignore')
|
||||
|
||||
MODES = {
|
||||
# standard
|
||||
|
|
Loading…
Reference in New Issue
Block a user