mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-16 07:19:00 +00:00
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:
parent
ff309ea4c5
commit
897955f0a1
259 changed files with 86 additions and 817 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue