| Age | Commit message (Collapse) | Author |
|
filesizeformat filters.
intword and filesizeformat passed floats to ngettext() which is
deprecated in Python 3.7. The rationale for this warning is documented
in BPO-28692: https://bugs.python.org/issue28692.
For filesizeformat, the filesize value is expected to be an int -- it
fills %d string formatting placeholders. It was likely coerced to a
float to ensure floating point division on Python 2. Python 3 always
does floating point division, so coerce to an int instead of a float to
fix the warning.
For intword, the number may contain a decimal component. In English, a
decimal component makes the noun plural. A helper function,
round_away_from_one(), was added to convert the float to an integer that
is appropriate for ngettext().
|
|
function is wrapped.
getfullargspec() doesn't work with wrapped functions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Dicts preserve order since Python 3.6.
|
|
Unused since 5d8da093a974f41e08573bbe0d32d5ffeaadd0ad.
|
|
Unused since 5d8da093a974f41e08573bbe0d32d5ffeaadd0ad.
|
|
Thanks Mariusz Felisiak for auditing.
|
|
|
|
|
|
|
|
dots.
Thanks Sudhanshu Mishra for the initial patch and Tim Graham for the review.
|
|
|
|
Regression in 3a148f958dddd97c1379081118c30fbede6b6bc4.
|
|
|
|
|
|
|
|
functions.
Regression in 620e9dd31a2146d70de740f96a8cb9a6db054fc7.
|
|
Thanks Tim Graham for the review.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
false.
|
|
|
|
|
|
Thanks Sergey Fedoseev for the review.
|
|
|
|
|
|
|
|
|
|
|
|
Thanks Fraser Nevett for the report and Tim Graham for patch edits.
|
|
|
|
|
|
|
|
Unknown if it was ever used.
|
|
|
|
Also removed unused VariableDoesNotExist catching where failures are ignored.
|
|
|
|
|
|
|