Another python 2.6 detail

This commit is contained in:
wiredfool 2013-10-08 11:32:51 -07:00
parent e9b0b09b72
commit 08347569b5

View File

@ -1098,7 +1098,7 @@ def _save(im, fp, filename):
atts[k] = v[0]
continue
if isStringType(v):
atts[k] = v.encode('ascii', errors='ignore')
atts[k] = v.encode('ascii', 'ignore')
continue
except Exception as msg: