Changes between Version 55 and Version 63 of Ticket #23919
- Timestamp:
- Jan 19, 2017, 9:29:50 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23919 – Description
v55 v63 1 1 This is a tracking ticket of things that we can remove when we drop Python 2 compatibility in Django 2.0. Please edit the description of the ticket as you come across new items. 2 2 3 * `django.core.mail.message.make_msgid()`#239053 * ~~`django.core.mail.message.make_msgid()`~~ #23905 4 4 * ~~`django.dispatch.weakref_backports`~~ 5 * `django.http.cookie` workarounds6 * `django.utils.2to3_fixes`5 * ~~`django.http.cookie` workarounds~~ (remains for Python 3.4) 6 * ~~`django.utils.2to3_fixes`~~ 7 7 * ~~`django.utils.decorators.ContextDecorator` ~~ 8 8 * `django.utils.encoding` … … 10 10 * ~~force/smart _unicode~~ 11 11 * either force/smart _text or force/smart _str 12 * `django.utils.html_parser.use_workaround`12 * ~~`django.utils.html_parser.use_workaround`~~ 13 13 * `django.utils.http` functions like `urlquote_plus` -- I think the versions of these functions on Python 3 don't have the unicode characters bug we are working around. 14 14 * ~~Stop using `django.utils.lru_cache`~~ 15 * Figure the deprecation plan for `django.utils.lru_cache`15 * ~~Figure the deprecation plan for `django.utils.lru_cache`~~ (staying for now) 16 16 * `django.utils.six` - Remaining: [https://github.com/django/django/pull/7878 PR 7878] 17 17 * ~~`from __future__ import unicode_literals`~~ … … 19 19 * ~~`str()` stuff for `type(name)` and `__name__`~~ 20 20 * ~~Inheriting from `object` in `django.core.servers.basehttp` (and perhaps other places) ala 4ee06ec3fc8e94d164afbd2f9c880c60c658a9ac~~ 21 * `git grep 'long int'` (mostly docs)22 * `django.utils._os [npath,upath]`23 * In tests: `contextlib.closing(self.urlopen` (`contextlib.closing` no longer needed)24 * Support for pysqlite (doesn't support Python 3) 21 * ~~`git grep 'long int'` (mostly docs)~~ 22 * ~~`django.utils._os [npath,upath]`~~ 23 * ~~In tests: `contextlib.closing(self.urlopen` (`contextlib.closing` no longer needed)~~ 24 * Support for pysqlite (doesn't support Python 3) [https://github.com/django/django/pull/7890 PR] 25 25 * Replace `super(ClassName, self)` with `super()` 26 26 * ~~Remove `# -*- coding: utf-8 -*-` source file encoding~~ (that's the default on Python 3) 27 27 * Evaluate replacement of custom `__del__` methods by [https://docs.python.org/3/library/weakref.html#weakref.finalize weakref.finalize] 28 28 * ~~Remove `__ne__` from objects already defining a `__eq__`~~ 29 * Remove note about PYTHONHASHSEED (see #26243)29 * ~~Remove note about PYTHONHASHSEED (see #26243)~~ 30 30 * Remove Field.creation_counter (replace by metaclass `__prepare__` returning `OrderedDict()`, https://docs.python.org/3/reference/datamodel.html#preparing-the-class-namespace) 31 31 * ~~`django.test.utils.reset_warning_registry()`~~ 32 32 * Replace `errno` checks by `IOError` subclasses defined by [https://www.python.org/dev/peps/pep-3151/ PEP 3151] 33 33 * ~~`django.utils.glob`~~ 34 * `django.utils.cookies.SimpleCookie`35 * `django.test.mock`34 * ~~`django.utils.cookies.SimpleCookie`~~ (remains for Python 3.4 compatibility) 35 * ~~`django.test.mock`~~ 36 36 * Replace `tempfile.mkdtemp` + remove with `tempfile.TemporaryDirectory` context manager 37 37 * ~~Replace `io.open()` by a plain `open()`~~ 38 * Evaluate need for `assertRegex`, `assertRaisesRegex` in tests. Some usage is merely to account for differences in messages between Python 2 and 3.38 * ~~Evaluate need for `assertRegex`, `assertRaisesRegex` in tests. Some usage is merely to account for differences in messages between Python 2 and 3.~~ 39 39 * `re.U`, `re.UNICODE` (default behavior of Python 3) - [https://github.com/django/django/pull/7879 PR 7879]