aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2020-01-22 23:25:24 +0100
committerLaurent Bachelier <laurent@bachelier.name>2020-01-22 23:25:24 +0100
commit12415f464ee00862103f9e56e65d59d5a08ccb9a (patch)
treee95bbc1b84a1fd73a62bca45a6762e501ecbb66d
parentRelease 0.2.0 (diff)
downloadconfman-12415f464ee00862103f9e56e65d59d5a08ccb9a.tar.xz
Python 3 compatibility
-rw-r--r--confman.py4
-rwxr-xr-xsetup.py5
2 files changed, 6 insertions, 3 deletions
diff --git a/confman.py b/confman.py
index 71c26e5..6364cc7 100644
--- a/confman.py
+++ b/confman.py
@@ -422,8 +422,8 @@ class ConfigSource(object):
"""
Iterates over all analyzed files.
"""
- for files in self.tree.itervalues():
- for f in files.itervalues():
+ for files in self.tree.values():
+ for f in files.values():
yield f
def __repr__(self):
diff --git a/setup.py b/setup.py
index 7eb33a3..11f5ed1 100755
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,10 @@ setup(
py_modules=['confman'],
classifiers=[
'License :: OSI Approved :: MIT License',
- 'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
+ 'Programming Language :: Python :: 3.5',
+ 'Programming Language :: Python :: 3.6',
+ 'Programming Language :: Python :: 3.7',
+ 'Programming Language :: Python :: 3.8',
],
)