Remove all Python 2 support

* Removed all __future__ imports from code
* Removed all six dependencies
* Removed all future_builtins imports
* Removed all Python 2 related code

Closes: deluge-torrent/deluge#325
This commit is contained in:
DjLegolas 2021-12-25 14:34:49 +02:00 committed by Calum Lind
commit 897955f0a1
No known key found for this signature in database
GPG key ID: 90597A687B836BA3
259 changed files with 86 additions and 817 deletions

View file

@ -11,7 +11,7 @@ compatible with 2.0 and this guide aims to helps with that process.
### Python version matching
Ensure your code is both Python 2.7 and Python >=3.5 compatible.
Ensure your code is Python >=3.5 compatible.
In `1.3-stable` the plugins that were built with a specific version of Python
would only be loaded if the system Python also matched.
@ -19,19 +19,6 @@ would only be loaded if the system Python also matched.
This has change in Deluge 2.0 and it will load any Python version of plugin
eggs so compatibility is essential for end-users not to encounter issues.
### Six
Use [six] to assist with compatibility.
[six]: https://pythonhosted.org/six/
### Unicode literals
Add the following to files to ensure strings and bytes separation so there
are no surprises when running on Python 3.
from __future__ import unicode_literals
## GTK 3 addition
In order to support both Deluge 1.3 and 2.0 all existing plugin GTK UI files