summaryrefslogtreecommitdiff
path: root/django/utils
AgeCommit message (Collapse)Author
2012-07-25Rolled back a unnecessary change in 8f002867b2.Aymeric Augustin
This keeps the implementation of setdefault and setlistdefault consistent. Also it's marginally faster than looking up the value again.
2012-07-24Added tests for deprecation warnings and fixed the argument order for the ↵Alex Gaynor
warnings.
2012-07-24Remove double isinstance check in force_unicodeJeroen Dekkers
2012-07-22Used a Python 3-compatible syntax for building a translation tableClaude Paroz
2012-07-22[py3] Added Python 3 compatibility for xrange.Aymeric Augustin
2012-07-22[py3] Switched to Python 3-compatible imports.Aymeric Augustin
xrange/range will be dealt with in a separate commit due to the huge number of changes.
2012-07-22[py3] Updated urllib/urllib2/urlparse imports.Aymeric Augustin
Lots of functions were moved. Use explicit imports in all cases to keey it easy to identify where the functions come from.
2012-07-22[py3] Replaced unicode/str by six.text_type/bytes.Aymeric Augustin
2012-07-22[py3] Replaced basestring by six.string_types.Aymeric Augustin
2012-07-22[py3] Removed longs.Aymeric Augustin
2012-07-22[py3] Fixed django.utils.six.moves.Aymeric Augustin
It didn't work because six was inside django.utils.
2012-07-22[py3] Bundled six for Python 3 compatibility.Aymeric Augustin
Refs #18363.
2012-07-20Switched to octal notation (bis).Aymeric Augustin
2012-07-20Switched to Python 3-compatible octal notation.Aymeric Augustin
2012-07-17Fixed #18644 -- Made urlize trim trailing period followed by parenthesisVebjorn Ljosa
2012-07-14Remove DotExpandedDict, which was undocumented and unused.Alex Gaynor
2012-07-14Fix an incredibly emberassing typo.Alex Gaynor
2012-07-14Deprecate two methods (which I seriously doubt anyone ever used, but they ↵Alex Gaynor
were documented so...) because they cannot be implemented efficiently on top of collections.SortedDict in Python 2.7 and up.
2012-07-14Cleaned up the QueryDict implementation.Alex Gaynor
- Use super(). - Don't poke at internals. - Don't override methods for no reason.
2012-07-14Update links to diveintomark.org.Aymeric Augustin
These pages are gone.
2012-07-06Fix copyright holderGuilherme Gondim
2012-07-03Added 'format_html' utility for formatting HTML fragments safelyLuke Plant
2012-07-03Documented utils.html.escape and conditional_escapeLuke Plant
2012-06-22Fixed our HTMLParser patches for python 2.7.4Florian Apolloner
2012-06-14Fixed #12140 -- Fixed http.urlencode result for empty listsClaude Paroz
Thanks aneil for the report and the initial patch.
2012-06-08Used git log instead of git show for last commit's timestampAnssi Kääriäinen
The reason for this was that git show included the whole changeset in the output, but only the UTC timestamp was needed. By using git log it is possible to get just the timestamp. The whole changeset can be large, and can cause unicode encoding errors.
2012-06-07Fixed #18363 -- Added Python 3 compatibility layer.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Alex Gaynor, kezabelle, YorikSar for the review.
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2012-06-06Delayed encoding of password and salt in password checking.Claude Paroz
Applied the rule that string encoding should happen as late as possible. This is also a preparation for Python 3 compatibility.
2012-05-28Removed unneeded smart_str in cache utils.Claude Paroz
2012-05-23Replaced types.NoneType occurrencesClaude Paroz
In Python 3, types.NoneType is no more available.
2012-05-20Imported reduce from functools for forward compatibility.Claude Paroz
In Python 3, reduce has to be imported from functools.
2012-05-19Marked bytestrings with b prefix. Refs #18269Claude Paroz
This is a preparation for unicode literals general usage in Django (Python 3 compatibility).
2012-05-18Got rid of old __cmp__methods replaced by rich comparison.Claude Paroz
The __cmp__ methods are unsupported in Python 3. _doctest.py has been left untouched because it is likely it will not be migrated to Python 3.
2012-05-11Fixed typo in utils/archive.py docstringAdrian Holovaty
2012-05-10Replaced foo.next() by next(foo).Claude Paroz
This new syntax for next() has been introduced in Python 2.6 and is compatible with Python 3.
2012-05-07Fixed total_ordering for Python < 2.7.2Anssi Kääriäinen
The total_ordering in Python versions prior to 2.7.2 is buggy, and this caused infinite recursion for Field comparisons on those versions. Use the borrowed total_ordering for all Python versions prior to 2.7.2. The buggy total_ordering was introduced in commit 5cbfb48b92cb26a335f9c8c0f79d3390290103e2
2012-05-07Made model fields comparable to other objectsSimon Charette
Fixed #17851 -- Added __lt__ and @total_ordering to models.Field, made sure these work correctly on other objects than Field, too.
2012-05-05Replaced cStringIO.StringIO by io.BytesIO.Claude Paroz
Also replaced StringIO.StringIO by BytesIO in some other appropriate places. StringIO is not available in Python 3.
2012-05-05Fixed the syntax used for the Python repl examples in docs and docstrings.Alex Gaynor
2012-05-05Made more extensive usage of context managers with open.Claude Paroz
2012-05-03Fixed #18042 -- Advanced deprecation warnings.Aymeric Augustin
Thanks Ramiro for the patch.
2012-04-30Replaced print statement by print function (forward compatibility syntax).Claude Paroz
2012-04-30Fixed SortedDict.__copy__()Anssi Kääriäinen
Fixed #18175 -- Calling SortedDict.__copy__() resulted in changes to the original dictionary. The reason was likely related to subclassing dict. Thanks to linovia for report and patch.
2012-04-30Fix a typo in a comment.Alex Gaynor
2012-04-29Fixed #18013 -- Use the new 'as' syntax for exceptions.Claude Paroz
Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6).
2012-04-29Moved version code out of __init__.py.Adrian Holovaty
Moved everything except VERSION and a get_version() stub out of the top-level __init__.py, so that we're not importing all that stuff all the time. And because it's cleaner.
2012-04-29Fixed #18023 -- Removed bundled simplejson.Aymeric Augustin
And started the deprecation path for django.utils.simplejson. Thanks Alex Ogier, Clueless, and other contributors for their work on the patch.
2012-04-29Simplified timezones tests with settings_changed.Aymeric Augustin
All relevant state is now properly reset whenever TIME_ZONE or USE_TZ are changed in tests.
2012-04-29Fixed #17992 -- Added a public API for localtime.Aymeric Augustin
Thanks Bradley Ayers for the report.