| Age | Commit message (Collapse) | Author |
|
from being accepted in URLValidator on Python 3.9.5+.
In Python 3.9.5+ urllib.parse() automatically removes ASCII newlines
and tabs from URLs [1, 2]. Unfortunately it created an issue in
the URLValidator. URLValidator uses urllib.urlsplit() and
urllib.urlunsplit() for creating a URL variant with Punycode which no
longer contains newlines and tabs in Python 3.9.5+. As a consequence,
the regular expression matched the URL (without unsafe characters) and
the source value (with unsafe characters) was considered valid.
[1] https://bugs.python.org/issue43882 and
[2] https://github.com/python/cpython/commit/76cd81d60310d65d01f9d7b48a8985d8ab89c8b4
Backport of e1e81aa1c4427411e3c68facdd761229ffea6f6f from main.
|
|
URLValidator now validates the maximum length of a hostname without
the userinfo and port.
|
|
|
|
|
|
|
|
The method has been available since Python 3.6. The shorter syntax is
also marginally faster.
|
|
|
|
|
|
Special characters lose their special meaning inside sets of characters.
"-" lose its special meaning if it's placed as the first or last
character.
|
|
|
|
implemented comparisons.
Changed __eq__ to return NotImplemented instead of False if compared to
an object of the same type, as is recommended by the Python data model
reference. Now these models can be compared to ANY (or other objects
with __eq__ overwritten) without returning False automatically.
|
|
|
|
Thanks Claude Paroz for assistance with translations.
|
|
|
|
and password.
|
|
|
|
|
|
values.
|
|
|
|
scientific notation.
|
|
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda
because try/except performs better.
|
|
CharField form field.
|
|
|
|
|
|
iter(dict) is equivalent to iter(dict.keys()).
|
|
|
|
Thanks Tim Graham for the review.
|
|
|
|
|
|
Thanks Tim Graham for the review.
|
|
|
|
Thanks Tim Graham for the review.
|
|
Thanks Tim Graham for the review.
|
|
|
|
|
|
|
|
|
|
|
|
__ne__() defaults to the opposite of __eq__() on Python 3
when it doesn't return NotImplemented.
|
|
Thanks Tim Graham for the review.
|
|
Thanks Tim Graham and Simon Charette for the reviews.
|
|
|
|
|
|
|
|
http://bugs.python.org/issue27364
|
|
|
|
|
|
|
|
Thanks Shai Berger for the review.
|
|
|