PIL 中image.py中 出现AttributeError: 'int' object has no attribute 'upper'问题,应该怎样更改?

img
运行代码在2156行处报错AttributeError: 'int' object has no attribute 'upper',不知道怎样修改。在PIL文件下的Image.py文件中出现的问题。有知道应该怎样修改吗?