summaryrefslogtreecommitdiffstats
path: root/setup.cfg
diff options
context:
space:
mode:
authorCalum Lind <calumlind@gmail.com>2017-03-05 09:29:51 +0000
committerCalum Lind <calumlind@gmail.com>2017-06-05 22:25:29 +0100
commit481f77934983284b67b7546470f52c9799bc6184 (patch)
tree6efeac6d6c038809f989385ec2e743ede0b2a4e1 /setup.cfg
parentede0f710f814c62f9e6625c7b166fb7b1fcf5942 (diff)
downloaddeluge-481f77934983284b67b7546470f52c9799bc6184.tar.gz
deluge-481f77934983284b67b7546470f52c9799bc6184.tar.bz2
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.cfg3
1 files changed, 1 insertions, 2 deletions
diff --git a/setup.cfg b/setup.cfg
index 7066be629..b7924ac3d 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -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