diff options
author | Brent Stapleton <brent.stapleton@ettus.com> | 2018-11-13 11:01:29 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-11-13 13:24:36 -0800 |
commit | f5f0b6f386ab6dd907fce91afd28537f2ee70b13 (patch) | |
tree | 8c99031af4cc4f4ea5eeff8bfc38fab01dd67c7c /gnuradio-runtime/python/gnuradio | |
parent | 45d0e42fe5e0380e860675c1b6032dcccf22d083 (diff) |
ctrlport: gr-perf-monitorx: remove iteritems usage
Removing usage of dict.iteritems in gr-perf-monitorx. Replaced with
items() because
- the dictionaries are sufficiently small
- We're calling sorted() on them anyway
Diffstat (limited to 'gnuradio-runtime/python/gnuradio')
-rw-r--r-- | gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx b/gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx index 302275feb1..070eba96cf 100644 --- a/gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx +++ b/gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx @@ -403,7 +403,7 @@ class DataTableBuffers(DataTable): else: if(self._sort): - sorted_fullness = sorted(blockport_fullness.iteritems(), + sorted_fullness = sorted(blockport_fullness.items(), key=operator.itemgetter(1)) self._keymap = map(operator.itemgetter(0), sorted_fullness) else: @@ -457,7 +457,7 @@ class DataTableRuntimes(DataTable): else: if(self._sort): - sorted_work = sorted(work_times.iteritems(), key=operator.itemgetter(1)) + sorted_work = sorted(work_times.items(), key=operator.itemgetter(1)) self._keymap = map(operator.itemgetter(0), sorted_work) else: if self._keymap: |