django1/django/utils
William Schwartz 9ee693bd6c Fixed #32316 -- Deferred accessing __file__.
Deferred accessing the module-global variable __file__ because the
Python import API does not guarantee it always exists—in particular, it
does not exist in certain "frozen" environments. The following changes
advanced this goal.

Thanks to Carlton Gibson, Tom Forbes, Mariusz Felisiak, and Shreyas
Ravi for review and feedback.
2021-04-01 14:33:30 +02:00
..
translation Fixed #32581 -- Prevented to_locale() from corrupting locale names. 2021-03-22 07:08:58 +01:00
__init__.py
_os.py Refs #30461 -- Added django.utils._os.to_path(). 2019-08-13 17:17:39 +02:00
archive.py Fixed CVE-2021-3281 -- Fixed potential directory-traversal via archive.extract(). 2021-02-01 09:07:36 +01:00
asyncio.py Fixed #31056 -- Allowed disabling async-unsafe check with an environment variable. 2019-12-03 17:29:31 +01:00
autoreload.py Fixed #32355 -- Dropped support for Python 3.6 and 3.7 2021-02-10 10:20:54 +01:00
baseconv.py Refs #23919 -- Stopped inheriting from object to define new style classes. 2017-01-19 08:39:46 +01:00
cache.py Made small readability improvements. 2020-10-28 20:20:20 +01:00
connection.py Fixed #32233 -- Cleaned-up duplicate connection functionality. 2020-12-08 08:55:44 +01:00
crypto.py Refs #31359 -- Made get_random_string()'s length argument required. 2021-01-14 17:50:04 +01:00
datastructures.py Refs #24121 -- Added __repr__() to OrderedSet. 2021-03-10 09:29:05 +01:00
dateformat.py Refs #32365 -- Allowed use of non-pytz timezone implementations. 2021-01-19 11:59:37 +01:00
dateparse.py Fixed #32269 -- Fixed parse_duration() for negative days in ISO 8601 format. 2020-12-21 10:28:07 +01:00
dates.py Fixed #28798 -- Removed unused django.utils.dates.WEEKDAYS_REV, MONTHS_3_REV. 2017-11-17 15:37:58 -05:00
datetime_safe.py Refs #30116 -- Simplified regex match group access with Match.__getitem__(). 2020-05-11 12:01:28 +02:00
deconstruct.py Refs #27656 -- Updated django.utils docstring verbs according to PEP 257. 2017-02-11 16:11:08 -05:00
decorators.py Fixed #31224 -- Added support for asynchronous views and middleware. 2020-03-18 19:59:12 +01:00
deprecation.py Refs #24121 -- Added __repr__() to MiddlewareMixin and subclasses. 2021-03-10 21:16:58 +01:00
duration.py Fixed #28926 -- Fixed loss of precision of big DurationField values on SQLite and MySQL. 2017-12-28 17:35:41 -05:00
encoding.py Refs #27753 -- Removed django.utils.encoding.force_text() and smart_text() per deprecation timeline. 2021-01-14 17:50:04 +01:00
feedgenerator.py Used 4 space hanging indent for dictionaries. 2019-01-02 18:18:19 -05:00
formats.py Fixed #30134 -- Ensured unlocalized numbers are string representation in templates. 2020-06-04 10:34:54 +02:00
functional.py Refs #32508 -- Raised ValueError instead of using "assert" in lazy(). 2021-03-15 13:10:30 +01:00
hashable.py Refs #29838, Refs #28507 -- Made make_hashable() ignore key order. 2020-10-05 20:42:46 +02:00
html.py Removed unused unencoded_ampersands_re regex. 2019-11-25 09:01:31 +01:00
http.py Fixed #32355 -- Dropped support for Python 3.6 and 3.7 2021-02-10 10:20:54 +01:00
inspect.py Refs #31732 -- Fixed django.utils.inspect caching for bound methods. 2021-03-22 13:17:54 +01:00
ipv6.py Refs #27656 -- Updated django.utils docstring verbs according to PEP 257. 2017-02-11 16:11:08 -05:00
itercompat.py Refs #27656 -- Updated django.utils docstring verbs according to PEP 257. 2017-02-11 16:11:08 -05:00
jslex.py Refs #30116 -- Simplified regex match group access with Match.__getitem__(). 2020-05-11 12:01:28 +02:00
log.py Fixed #29329 -- Made datetime logging from runserver more consistent. 2020-04-16 12:55:53 +02:00
lorem_ipsum.py Refs #27656 -- Updated django.utils docstring verbs according to PEP 257. 2017-02-11 16:11:08 -05:00
module_loading.py Refs #32355 -- Corrected comments about Python's _NamespacePath. 2021-03-26 10:17:10 +01:00
numberformat.py Fixed #28280 -- Prevented numberformat.format() from formatting large/tiny floats in scientific notation. 2020-02-26 16:02:53 +01:00
regex_helper.py Refs #30899 -- Made _lazy_re_compile() support bytes. 2019-10-29 09:14:24 +01:00
safestring.py Fixed outdated import in django/utils/safestring.py. 2019-12-06 09:31:33 +01:00
termcolors.py Fixed typo in django/utils/termcolors.py docstring. 2019-12-27 07:49:15 +01:00
text.py Optimized django.utils.text.capfirst(). 2021-03-23 10:45:58 +01:00
timesince.py Fixed #31623 -- Allowed specifying number of adjacent time units in timesince()/timeuntil(). 2020-07-16 09:44:28 +02:00
timezone.py Refs #32365 -- Allowed use of non-pytz timezone implementations. 2021-01-19 11:59:37 +01:00
topological_sort.py Fixed E128, E741 flake8 warnings. 2020-05-12 08:52:23 +02:00
tree.py Fixed #29838 -- Fixed crash when combining Q objects with __in lookups and lists. 2018-10-17 11:34:49 -04:00
version.py Fixed #32316 -- Deferred accessing __file__. 2021-04-01 14:33:30 +02:00
xmlutils.py Fixed #30159 -- Removed unneeded use of OrderedDict. 2019-02-06 13:48:39 -05:00