| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| (0, 2, 1, 6), | ||
| ): | ||
| with pytest.raises(ValueError): | ||
| print(bad_boxes) |
There was a problem hiding this comment.
remove the print?
Sorry, something went wrong.
| goto exit; | ||
| } | ||
| if (0 > y1 || y1 > y2 || y2 > height || | ||
| 0 > x1 || x1 > x2 || x2 > width ) { |
There was a problem hiding this comment.
extra space after width?
Sorry, something went wrong.
- due to missing tk libraries - due to qt already being imported
|
I still can write code I swear... |
Sorry, something went wrong.
|
Can probably re-use the skip_on_importfailure flag to further simplify the Qt tests? |
Sorry, something went wrong.
|
quite possibly, indeed, looks like a good idea. |
Sorry, something went wrong.
There was a problem hiding this comment.
Minor comment, but would also be ok without.
Sorry, something went wrong.
| PyErr_SetString(PyExc_ValueError, "Failed to extract Tk_PhotoHandle"); | ||
| goto exit; | ||
| } | ||
| if (0 > y1 || y1 > y2 || y2 > height || 0 > x1 || x1 > x2 || x2 > width) { |
There was a problem hiding this comment.
| if (0 > y1 || y1 > y2 || y2 > height || 0 > x1 || x1 > x2 || x2 > width) { | |
| if (y1 < 0 || y1 > y2 || y2 > height || x1 < 0 || x1 > x2 || x2 > width) { |
I find it easier this way "y1 is smaller than 0 or larger than y2". 0 > y1 sort of ties a knot in my brain. 😄
Sorry, something went wrong.
There was a problem hiding this comment.
That is fair, but having all of the > go the same way is also helpful..
Moot now that @efiring merged it..
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
As suggested by @cgohlke
PR Summary
PR Checklist