Andrew Murray
3426052874
Removed re-raising of exception
2022-03-04 12:27:28 +11:00
Andrew Murray
cb4e26783f
Retain variable case for backwards compatibility
2022-03-04 12:27:14 +11:00
Andrew Murray
e2e87d73c3
Reverted SyntaxError change to match other plugins
2022-03-04 12:26:55 +11:00
Piolie
9c2cbcf452
Keep case consistency in error messages
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-03-22 13:06:16 -03:00
Piolie
8ad5172e88
Fix wrong extension in temp test files
2021-03-21 02:16:39 -03:00
Andrew Murray
41a439da7d
Added context managers
2021-03-21 14:42:36 +11:00
Piolie
b6f6fba8cf
Rewrite _ignore_comment
as one-liner
2021-01-31 01:40:43 -03:00
Piolie
b43654d159
Change variable name in _read_magic()
2021-01-31 01:40:43 -03:00
Piolie
39288f0fb0
Create maxval
variable
2021-01-31 01:40:32 -03:00
Piolie
50522d932e
Change max token size to 10
...
- ...so as not to reject "2,147,483,647" (2 ** 31 - 1);
- reword exception message.
2021-01-31 01:35:25 -03:00
Piolie
bc5ecfb79c
Make minor changes to tests
...
- add test for maxcolors;
- extend coverage for wrong magic number;
- fix linting.
2021-01-06 14:53:30 -03:00
Piolie
73fed77c0c
Suppress exception context
2021-01-06 14:46:30 -03:00
Piolie
002e0bd697
Add tests for token size and wrong magic number
2021-01-06 01:21:35 -03:00
Piolie
5d0ad5e2e9
Revert exception types to ValueError
2021-01-06 01:21:01 -03:00
Piolie
4dbe244e42
Add token limit
2021-01-06 01:07:14 -03:00
Piolie
d2ad27d70a
Correctly check magic number
2021-01-05 00:08:15 -03:00
Piolie
699afe1e89
Improve PPM tests
2020-12-21 22:39:32 -03:00
Piolie
6b81e34d67
Improve handling of PPM headers
2020-12-21 22:39:27 -03:00
Hugo van Kemenade
396b329507
Merge pull request #5113 from radarhere/memory
...
Replaced PyErr_NoMemory with ImagingError_MemoryError
2020-12-20 22:17:10 +02:00
Hugo van Kemenade
19648fa925
Merge pull request #5115 from HollowMan6/patch-1
...
Fix use of a versus an in ImageCms.rst
2020-12-20 16:47:54 +02:00
Hollow Man
889409ded3
Fix use of a versus an in ImageCms.rst
...
an color -> a color
2020-12-20 22:31:25 +08:00
Andrew Murray
83d82ae150
Merge pull request #5098 from hugovk/deprecate-freetype
...
Deprecate FreeType 2.7
2020-12-20 13:35:41 +11:00
Andrew Murray
330384582a
Merge pull request #5112 from jdufresne/pycon
...
Update some doc code blocks to the 'pycon' lexer
2020-12-20 13:29:41 +11:00
Andrew Murray
b7fb39fff8
Use ImagingError_MemoryError NULL return value
2020-12-20 13:00:16 +11:00
Andrew Murray
75542fea6d
Replaced PyErr_NoMemory with ImagingError_MemoryError
2020-12-20 13:00:10 +11:00
Jon Dufresne
5474b2c7d4
Update some doc code blocks to the 'pycon' lexer
...
These code blocks represent Python console sessions, not Python source
code. The pycon lexer understands the ">>>" prompt and output (e.g. a
traceback).
2020-12-19 17:55:54 -08:00
Andrew Murray
c1707d5d55
Merge pull request #5109 from cgohlke/patch-2
...
Remove duplicate code
2020-12-20 12:09:08 +11:00
Andrew Murray
00b08c8616
Merge pull request #5110 from jdufresne/isort-url
...
Update isort URL: timothycrosley/isort → PyCQA/isort
2020-12-20 11:59:20 +11:00
Jon Dufresne
2f48b036ad
Update isort URL: timothycrosley/isort → PyCQA/isort
2020-12-19 15:10:47 -08:00
Christoph Gohlke
c1adae6f70
Remove duplicate code
2020-12-19 15:07:51 -08:00
Andrew Murray
c52c3ae3e2
Merge pull request #5102 from hugovk/add-path-tests
...
Add tests for ImagePath.Path
2020-12-20 07:43:56 +11:00
Andrew Murray
4b15723c7f
Merge pull request #5107 from hugovk/travis-cleanup
...
Remove unused Travis CI config
2020-12-20 07:43:44 +11:00
Andrew Murray
85c118134d
Merge branch 'master' into travis-cleanup
2020-12-20 07:26:56 +11:00
Andrew Murray
dc74c8ec5f
Merge pull request #5106 from hugovk/fix-reqs
...
Added packaging
2020-12-20 07:25:24 +11:00
Hugo van Kemenade
924b1496c3
Show example link instead of hiding inside hyperlink
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-12-19 21:57:32 +02:00
Andrew Murray
b0af0d4076
Travis CI is no longer used
2020-12-19 21:57:32 +02:00
Andrew Murray
970d2b7c92
GitHub Actions have been added to wheels [ci skip]
2020-12-19 21:57:32 +02:00
Hugo van Kemenade
9e21ef7338
Remove old Travis CI config
2020-12-19 21:57:32 +02:00
Hugo van Kemenade
d3702fd614
Remove unused Travis CI config
2020-12-19 21:57:32 +02:00
Andrew Murray
162fbc679b
Added packaging
2020-12-19 21:48:17 +02:00
Hugo van Kemenade
ceaed2e058
Add tests for ImagePath.Path
2020-12-18 22:54:48 +02:00
Hugo van Kemenade
2b319f2ce4
Simplify: remove class
2020-12-18 22:54:40 +02:00
Hugo van Kemenade
4923c4b8c7
Merge pull request #65 from radarhere/deprecate-freetype
...
Do not require packaging just for a DeprecationWarning
2020-12-18 19:22:47 +02:00
Andrew Murray
043d8dac0b
Do not require packaging just for a DeprecationWarning
2020-12-18 23:42:16 +11:00
Andrew Murray
9e3ad5e997
Merge pull request #5088 from nulano/gha-qus-2
...
Move non-x86 tests to GHA
2020-12-18 17:48:51 +11:00
Andrew Murray
e414eb567a
Merge pull request #5099 from nulano/gha-pypy
...
GHA: Add PyPy3.7
2020-12-18 15:45:55 +11:00
nulano
5c600adf41
gha: add PyPy3.7
2020-12-17 20:09:13 +01:00
Hugo van Kemenade
cfc45ab9c3
Autolink PEP
2020-12-17 10:29:04 +02:00
Hugo van Kemenade
f0c0a0a1f4
Autolink CVEs with sphinx-issues
2020-12-17 10:29:04 +02:00
Hugo van Kemenade
d093b7141f
Update Makefile docs command for Python 3
2020-12-17 10:28:06 +02:00