diff options
author | Calum Lind <calumlind@gmail.com> | 2017-03-05 10:29:51 +0100 |
---|---|---|
committer | Calum Lind <calumlind@gmail.com> | 2017-06-05 23:25:29 +0200 |
commit | 481f77934983284b67b7546470f52c9799bc6184 (patch) | |
tree | 6efeac6d6c038809f989385ec2e743ede0b2a4e1 /setup.cfg | |
parent | [Core] Replace usage of deprecated new.classobj (diff) | |
download | deluge-481f77934983284b67b7546470f52c9799bc6184.tar.xz deluge-481f77934983284b67b7546470f52c9799bc6184.zip |
[Python3] Fixes to make code backward compatible
* Continuation of updating code to Python 3 with Python 2 fallback.
* Using io.open allows files to be encoded and decoded automatically on write and read. This
maintains the python boundaries of unicode in code and bytes for output/files so less
explicit encoding or decoding.
* io.StringIO is the replacement for StringIO and will only accept unicode strings.
* io.BytesIO is used where bytes output is required by the enclosing method.
* Update bencode for full compatibility.
Diffstat (limited to 'setup.cfg')
-rw-r--r-- | setup.cfg | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -20,8 +20,7 @@ known_third_party = # Ignore Windows specific modules. bbfreeze, win32verstamp, # Ignore gtk modules, primarily for tox testing. - pygtk, gtk, gobject, gtk.gdk, pango, cairo, pangocairo, - six + pygtk, gtk, gobject, gtk.gdk, pango, cairo, pangocairo known_first_party = msgfmt, deluge order_by_type = true line_length = 120 |