0001-misc-use-PIL.Image.Resampling.LANCZOS-instead-of-PIL.patch
src/authentic2/forms/fields.py | ||
---|---|---|
147 | 147 |
box[3] += box[1] |
148 | 148 | |
149 | 149 |
image = image.crop(box) |
150 |
return image.resize([width, height], PIL.Image.LANCZOS) |
|
150 |
try: |
|
151 |
resampling_algorithm = PIL.Image.Resampling.LANCZOS |
|
152 |
except AttributeError: |
|
153 |
# can be removed when Pillow < 9.1.0 is not supported anymore |
|
154 |
resampling_algorithm = PIL.Image.LANCZOS |
|
155 |
return image.resize([width, height], resampling_algorithm) |
|
151 | 156 | |
152 | 157 | |
153 | 158 |
class ValidatedEmailField(EmailField): |
tox.ini | ||
---|---|---|
181 | 181 |
error:.*please use dns.resolver.resolve:DeprecationWarning: |
182 | 182 |
error:.*Passing None for the middleware get_response argument is deprecated.*:: |
183 | 183 |
error:.*ANTIALIAS is deprecated and will be removed in Pillow 10:: |
184 |
error:.*LANCZOS.*Pillow 10:: |
|
184 | 185 |
junit_family=xunit2 |
185 | 186 | |
186 | 187 |
[coverage:run] |
187 |
- |