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 /base/server | |
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 'base/server')
-rw-r--r-- | base/server/python/pki/server/deployment/pkihelper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/server/python/pki/server/deployment/pkihelper.py b/base/server/python/pki/server/deployment/pkihelper.py index de3b1bc55..efe85c85d 100644 --- a/base/server/python/pki/server/deployment/pkihelper.py +++ b/base/server/python/pki/server/deployment/pkihelper.py @@ -3025,7 +3025,7 @@ class KRAConnector: "Trying old interface. " + str(e), extra=config.PKI_INDENTATION_LEVEL_2) info = sd.get_old_security_domain_info() - return info.systems['CA'].hosts.values() + return list(info.systems['CA'].hosts.values()) def execute_using_pki( self, caport, cahost, subsystemnick, |