From 481f77934983284b67b7546470f52c9799bc6184 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 5 Mar 2017 09:29:51 +0000 Subject: [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. --- setup.cfg | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'setup.cfg') 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 -- cgit v1.2.3