py3x fixes

This commit is contained in:
wiredfool 2017-05-10 04:59:37 -07:00
parent cdd2236dd2
commit 67d6e00751

View File

@ -97,7 +97,7 @@ def _read(file):
def get_version():
version_file = 'PIL/version.py'
with open(version_file, 'ra') as f:
with open(version_file, 'r') as f:
exec(compile(f.read(), version_file, 'exec'))
return locals()['__version__']