summaryrefslogtreecommitdiff
path: root/framework/log.py
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2016-01-04 17:38:17 -0800
committerDylan Baker <baker.dylan.c@gmail.com>2016-02-08 12:29:34 -0800
commita55abb88e0893b9b40392d04467880072c42109a (patch)
tree1a79e56938706375a48c9d0eab33e6f19034b798 /framework/log.py
parentb4a47de0cee7183bba278b1996afdd01069dd220 (diff)
python: use six.{iter,view}{items,keys,values}
This was initially generated via the following sed command: sed -i \ -e 's@in \(.*\)\.iter\(values,keys,items\)()@in six.iter\2(\1)@g' \ -e 's@in \(.*\..*\)\.iter\(values,keys,items\)()@in six.iter\2(\1)@g' Then cleaned up by hand, including changes for view*. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Acked-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'framework/log.py')
-rw-r--r--framework/log.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/log.py b/framework/log.py
index 86ae57528..12ff7ca1a 100644
--- a/framework/log.py
+++ b/framework/log.py
@@ -165,7 +165,7 @@ class QuietLog(BaseLog):
done=str(self._state['complete']).zfill(self._pad),
total=str(self._state['total']).zfill(self._pad),
status=', '.join('{0}: {1}'.format(k, v) for k, v in
- sorted(self._state['summary'].iteritems())),
+ sorted(six.iteritems(self._state['summary']))),
running=''.join('|/-\\'[x % 4] for x in self._state['running'])
)