--
Ticket URL: <https://code.djangoproject.com/ticket/24927>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* has_patch: 0 => 1
* needs_tests: => 0
* needs_docs: => 0
Comment:
The function was added to six in 1.9.0, copied from Django's code. PR at
https://github.com/django/django/pull/4784 to have it include one from the
other, I was unsure whether it was better to maintain the function in
encoding.
--
Ticket URL: <https://code.djangoproject.com/ticket/24927#comment:1>
* cc: me@… (added)
* easy: 1 => 0
Comment:
If we're going to use the method from `six`, seems we should to deprecate
import from django utils, and replace imports inside the django code to
use `six` import instead of utils.
--
Ticket URL: <https://code.djangoproject.com/ticket/24927#comment:2>
Comment (by carljm):
I don't think it's worth putting users through a deprecation process on
the import location of `python_2_unicode_compatible`, when we could just
provide a non-deprecated import shim and leave it there until Python 2
support is dropped entirely. That's a lot of hassle for Django users in
order to save us a single import line in `django.utils.encoding`.
I do think it's good to switch to relying on the implementation in `six`.
--
Ticket URL: <https://code.djangoproject.com/ticket/24927#comment:3>
* owner: nobody => MarkusH
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/24927#comment:4>
* stage: Unreviewed => Accepted
Comment:
PR: https://github.com/django/django/pull/4788
--
Ticket URL: <https://code.djangoproject.com/ticket/24927#comment:5>
Comment (by carljm):
@markush there was already a PR contributed, see above
--
Ticket URL: <https://code.djangoproject.com/ticket/24927#comment:6>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/24927#comment:7>
Comment (by MarkusH):
Oh, missed that. Thanks Carl.
--
Ticket URL: <https://code.djangoproject.com/ticket/24927#comment:8>
* needs_better_patch: 0 => 1
* stage: Ready for checkin => Accepted
Comment:
I agree, let's drop our version and import six'. As Carl said on the PR a
comment explaining the import is needed.
--
Ticket URL: <https://code.djangoproject.com/ticket/24927#comment:9>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"c91bc68e9a5f9f1e2cce00d01d62d16a858155f0" c91bc68]:
{{{
#!CommitTicketReference repository=""
revision="c91bc68e9a5f9f1e2cce00d01d62d16a858155f0"
Fixed #24927 -- Used python_2_unicode_compatible from six
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24927#comment:10>