From 12024a46705856570c0e05eb300c98911d94808c Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Wed, 7 Jan 2015 06:10:57 +0000 Subject: [PATCH] Py3 compatability --- salt/states/pip_state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/states/pip_state.py b/salt/states/pip_state.py index 893ad96b16..9609289bd8 100644 --- a/salt/states/pip_state.py +++ b/salt/states/pip_state.py @@ -470,7 +470,7 @@ def installed(name, # ' '.join((pkg.items()[0][0], pkg.items()[0][1].replace(',', ';'))) # pkgs = ','.join([prepro(pkg) for pkg in pkgs]) prepro = lambda pkg: pkg if type(pkg) == str else \ - ' '.join((pkg.items()[0][0], pkg.items()[0][1])) + ' '.join((six.iteritems(pkg)[0][0], six.iteritems(pkg)[0][1])) pkgs = [prepro(pkg) for pkg in pkgs] ret = {'name': ';'.join(pkgs), 'result': None,