git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67012 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -260,7 +260,7 @@ def RenderText(text, font, bgcolor, fgcolor):
def WxImageToPil(image):
"""Converts wx.Image to PIL image"""
pilImage = Image.new('RGB', (image.GetWidth(), image.GetHeight()))
- pilImage.fromstring(image.GetData())
+ getattr(pilImage, "frombytes", getattr(pilImage, "fromstring"))(image.GetData())
return pilImage