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

Add newlines to error message for clarity #2640

Merged
merged 1 commit into from Aug 16, 2017

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Jul 23, 2017

Also remove a space and lowercase "version" for sentence case.

Before:

/Users/hugo/github/Pillow/PIL/Image.py:77: RuntimeWarning: The _imaging extension was built for another version of Pillow or PIL: Core Version: 4.3.0.dev0Pillow Version:  4.2.0
  warnings.warn(str(v), RuntimeWarning)
Traceback (most recent call last):
  File "/tmp/Downloads/2639.py", line 1, in <module>
    from PIL import Image, ImageDraw, ImageFont
  File "/Users/hugo/github/Pillow/PIL/Image.py", line 62, in <module>
    PILLOW_VERSION))
ImportError: The _imaging extension was built for another version of Pillow or PIL: Core Version: 4.3.0.dev0Pillow Version:  4.2.0

After:

/Users/hugo/github/Pillow/PIL/Image.py:78: RuntimeWarning: The _imaging extension was built for another version of Pillow or PIL:
Core version: 4.3.0.dev0
Pillow version: 4.2.0
  warnings.warn(str(v), RuntimeWarning)
Traceback (most recent call last):
  File "/tmp/Downloads/2639.py", line 1, in <module>
    from PIL import Image, ImageDraw, ImageFont
  File "/Users/hugo/github/Pillow/PIL/Image.py", line 63, in <module>
    PILLOW_VERSION))
ImportError: The _imaging extension was built for another version of Pillow or PIL:
Core version: 4.3.0.dev0
Pillow version: 4.2.0

@wiredfool wiredfool merged commit c448db3 into python-pillow:master Aug 16, 2017
@hugovk hugovk deleted the version-newlines branch August 16, 2017 11:23
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.

None yet

2 participants