Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: AttributeError: 'function' object has no attribute 'im_func' on Py3. #340

Closed
wants to merge 1 commit into from

Conversation

cgohlke
Copy link
Contributor

@cgohlke cgohlke commented Sep 27, 2013

Needs review.
Fixes one test error on Python 3:

Tests\test_file_webp_metadata.py:22: exif = image._getexif() failed:
Traceback (most recent call last):
  File "Tests\test_file_webp_metadata.py", line 22, in test_read_exif_metadata
    exif = image._getexif()
  File "PIL\WebPImagePlugin.py", line 43, in _getexif
    return JpegImageFile._getexif.im_func(self)
AttributeError: 'function' object has no attribute 'im_func'

@aclark4life
Copy link
Member

@wiredfool Can you review please?

@cgohlke
Copy link
Contributor Author

cgohlke commented Sep 29, 2013

It looks like JpegImageFile._getexif could be made a normal function and called directly.

aclark4life added a commit that referenced this pull request Sep 29, 2013
Alternative patch for issue #340
radarhere pushed a commit to radarhere/Pillow that referenced this pull request Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants