summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Vu-Brugier <cvubrugier@fastmail.fm>2014-10-17 13:49:31 +0200
committerPaul Wise <pabs3@bonedaddy.net>2014-10-18 14:00:02 +0800
commit99c8d7cedce81f17b851954d94bfa73787300599 (patch)
tree1a8439c73dd627fe1eec5a21a4cf4061e57a0897
parente34fe9b424c0a7c8c78279a6076f3a1a8597d3b8 (diff)
downloadiotop-99c8d7cedce81f17b851954d94bfa73787300599.tar.gz
Fix build error with Python 3 caused by itervalues() in setup.py
The itervalues() method is not available in Python 3. As a consequence, this patch replaces the call to itervalues() in setup.py with a call to values() which works on both Python 2 and Python 3. Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm> Signed-off-by: Paul Wise <pabs3@bonedaddy.net>
-rwxr-xr-xsetup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 7150102..9de6068 100755
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ from iotop.version import VERSION
# Dirty hack to make setup.py install the iotop script to sbin/ instead of bin/
# while still honoring the choice of installing into local/ or not.
if hasattr(distutils_install, 'INSTALL_SCHEMES'):
- for d in distutils_install.INSTALL_SCHEMES.itervalues():
+ for d in distutils_install.INSTALL_SCHEMES.values():
if d.get('scripts', '').endswith('/bin'):
d['scripts'] = d['scripts'][:-len('/bin')] + '/sbin'