diff options
author | Christian Heimes <cheimes@redhat.com> | 2015-08-16 19:00:00 +0200 |
---|---|---|
committer | Christian Heimes <cheimes@redhat.com> | 2015-08-17 21:14:11 +0200 |
commit | 3725265993960285315942ea5a0355165282dd7c (patch) | |
tree | 01b2422355a1bfd7b70dda9bd982fa713840c611 /setup.py | |
parent | 632b935f59cd4c05004db6525757dd805a9b9e3f (diff) | |
download | pki-3725265993960285315942ea5a0355165282dd7c.tar.gz pki-3725265993960285315942ea5a0355165282dd7c.tar.xz pki-3725265993960285315942ea5a0355165282dd7c.zip |
Py3 modernization: libmodernize.fixes.fix_dict_six
In Python 3 dict methods like values(), items() and keys() return views
rather than lists. The iter equivalents are gone. Use six to use
iterators on Python 2 and 3.
In some places like setup.py a list is required. Use
list(somedict.values()) to get a list on all Python versions.
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -72,7 +72,7 @@ setup( 'base/server/sbin/pkispawn', 'base/java-tools/bin/pki', ], - data_files=upgrades.items(), + data_files=list(upgrades.items()), classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', |