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
Bugs web sprint2 2 #450
Bugs web sprint2 2 #450
Conversation
NB: I wonder if we almost need to add methods to import these which does things in the right order. Something like:
I tried to keep these synchronized with the idiom:
so that the following query should return nothing:
but likely these other locations were modified after my ticket:2597 changes. (Here I'm grepping in a different branch) |
#9586 is still a problem (open script, change datatype, ID's aren't cleared). |
Hmmm - I can see the logic behind ImportPILImage() etc, but then you've still got to import ImportPILImage from somewhere, which is kinda ugly. And then there's still no guarantee that anyone is going to use it (and not do their own PIL import). |
@will-moore, it's a fair point, which is also, I guess, why I didn't go with anything like that. Perhaps just a pylint-style check to make sure all imports are done in the proper style would be good. And barring that, teach the team what to look for, so everyone reviews the PRs. |
This is not the bug that was originally reported in #9804 (Safari working fine now) but was noticed as part of that testing.
Previous commit fixes Shape previews for shapes with no Z / T specified and Polygons with only a single point. |
@@ -43,10 +43,10 @@ | |||
logger = logging.getLogger(__name__) | |||
|
|||
try: | |||
import Image, ImageDraw, ImageFont | |||
from PIL import Image, ImageDraw, ImageFont |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth including the comment with the ticket number so that the grep
command I listed will return nothing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, but #2597 makes no mention of the need to try import 'from PIL' first. So that ticket will need to be updated with the info (and link) to #9790.
Merges fine with dev_4_4 locally (for testing if
After correcting the lacking build number in the |
This was previously #447 but rebased to fix merge conflicts.