summaryrefslogtreecommitdiffstats
path: root/setup.cfg
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2017-02-24 18:28:33 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2017-03-16 23:20:56 +0000
commiteb38e0ffff42c5862105b9f4138dc615aff57af8 (patch)
tree110a4de6c6e9a6fd1052ff44b35abaa869cc5bb5 /setup.cfg
parent321677e05a7d24e3a0c76012b588671a03bdac54 (diff)
downloaddeluge-eb38e0ffff42c5862105b9f4138dc615aff57af8.tar.gz
deluge-eb38e0ffff42c5862105b9f4138dc615aff57af8.tar.bz2
deluge-eb38e0ffff42c5862105b9f4138dc615aff57af8.zip
[Py2to3] Large set of changes for Python 3 compat
- Preparation work for using six or future module for Py2/3 compat. The code will be written in Python 3 with Python 2 fallbacks. - Added some Py3 imports with Py2 fallbacks to make it easier to remove Py2 code in future. - Replace xrange with range (sort out import as top of files in future). - Workaround Py2to3 basestring issue with inline if in instances. This means every usage of basestring is more considered. - Replace iteritems and itervalues for items and values. There might be a performance penalty on Py2 so might need to revisit this change.
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.cfg b/setup.cfg
index b7924ac3d..7066be629 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -20,7 +20,8 @@ known_third_party =
# Ignore Windows specific modules.
bbfreeze, win32verstamp,
# Ignore gtk modules, primarily for tox testing.
- pygtk, gtk, gobject, gtk.gdk, pango, cairo, pangocairo
+ pygtk, gtk, gobject, gtk.gdk, pango, cairo, pangocairo,
+ six
known_first_party = msgfmt, deluge
order_by_type = true
line_length = 120