django1/django/utils
Alex Gaynor 82e0cd1571 Optimized allow_lazy() by not generating a new lazy wrapper on each invocation.
This dramatically improves performance on PyPy. The following benchmark:

python -mtimeit -s "from django.utils.functional import allow_lazy; from django.utils.translation import ugettext_lazy; f = allow_lazy(lambda s: s, str)" "f(ugettext_lazy('abc'))"

goes from 390us per loop to 165us.
2015-02-08 14:56:57 -05:00
..
translation Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
__init__.py Imported Django from private SVN repository (created from r. 8825) 2005-07-13 01:25:57 +00:00
_os.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
archive.py Fixed #22681 -- Made TarArchive recognize leading directories properly. 2014-06-03 12:00:33 -04:00
autoreload.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
baseconv.py More attacking E302 violators 2013-11-02 13:12:09 -07:00
cache.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
checksums.py Fixed #23613 -- Deprecated django.utils.checksums 2014-10-10 09:22:20 -04:00
crypto.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
datastructures.py Removed django.utils.datastructures.SortedDict per deprecation timeline. 2015-01-17 08:40:23 -05:00
dateformat.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
dateparse.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
dates.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
datetime_safe.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
deconstruct.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
decorators.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
deprecation.py Advanced deprecation warnings for Django 1.9. 2015-01-19 12:22:41 -05:00
duration.py Fixed #2443 -- Added DurationField. 2014-12-20 18:28:29 +00:00
encoding.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
feedgenerator.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
formats.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
functional.py Optimized allow_lazy() by not generating a new lazy wrapper on each invocation. 2015-02-08 14:56:57 -05:00
html.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
html_parser.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
http.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
ipv6.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
itercompat.py Fixed #20746 -- Removed Python 2.6 specific code/docs 2013-07-14 13:02:55 -04:00
jslex.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
log.py Removed old import aliases. 2015-02-05 19:37:01 -05:00
lorem_ipsum.py Limited lines to 119 characters in django/ 2014-09-05 09:22:16 -04:00
lru_cache.py Fixed typo in lru_cache.py; refs #21351. 2013-11-12 18:45:35 +01:00
module_loading.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
numberformat.py Fixed #24181 -- Fixed multi-char THOUSAND_SEPARATOR insertion 2015-02-08 20:00:57 +01:00
regex_helper.py Fixed typos in code comments. 2015-01-20 12:18:03 -05:00
safestring.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
six.py Updated six to 1.9.0. 2015-01-02 12:35:41 -05:00
synch.py Removed threading fallback imports. 2015-01-28 10:23:25 -05:00
termcolors.py Fixed #23968 -- Replaced list comprehension with generators and dict comprehension 2014-12-08 07:58:23 -05:00
text.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
timesince.py Correct flake8 E302 violations 2013-11-02 19:53:29 -04:00
timezone.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
tree.py Removed legacy ORM lookup support per deprecation timeline; refs #16187. 2015-01-19 11:11:30 -05:00
version.py Fixed #23866 -- Harmonized refs to Django documentation from code 2014-12-25 13:53:13 +01:00
xmlutils.py More attacking E302 violators 2013-11-02 13:12:09 -07:00