diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2017-02-24 18:28:33 +0000 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2017-03-16 23:20:56 +0000 |
commit | eb38e0ffff42c5862105b9f4138dc615aff57af8 (patch) | |
tree | 110a4de6c6e9a6fd1052ff44b35abaa869cc5bb5 /setup.cfg | |
parent | 321677e05a7d24e3a0c76012b588671a03bdac54 (diff) | |
download | deluge-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.cfg | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |