#27753: Cleanups when no supported version of Django supports Python 2 anymore --------------------------------------+------------------------------------ Reporter: Aymeric Augustin | Owner: (none) Type: Cleanup/optimization | Status: new Component: Utilities | Version: master Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 --------------------------------------+------------------------------------
Comment (by Jon Dufresne): I can't recall exactly, but I suspect my thinking was along the lines of: 1. After dropping Python 2, `force_text()` & friends would eventually be removed from Django and replaced by stricter type contracts at the boundaries. This has proved to be time consuming and difficult to accomplish, so this isn't yet complete (but we're getting there). 2. `DjangoUnicodeDecodeError` looks like a close duplicate of `UnicodeDecodeError`. As you pointed out, it is not as it provides more information. Although, if the Python version is insufficient, perhaps effort could be spent improving that message. So, given the above, I'm OK for it to stick around. No need to remove it. > Maybe the mistake leading to this exception (#5640) isn't common enough in Python 3 to continue with the special handling? I suspect that is probably true, but I can't say for certain. -- Ticket URL: <https://code.djangoproject.com/ticket/27753#comment:23> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/067.69ea29a297eb60b12a696f4cb7d7649f%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.