diff options
author | Ted Ross <tross@apache.org> | 2010-09-22 12:50:58 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2010-09-22 12:50:58 +0000 |
commit | 1bdcd0996456626cb1180fb9227826f2d953cee1 (patch) | |
tree | ae32e8d45d53ad5f00abf7cca1e8a0d946fd48c8 /python | |
parent | f678b6a6ade7074ca94e75aacccf3f8b9e9d51cd (diff) | |
download | qpid-python-1bdcd0996456626cb1180fb9227826f2d953cee1.tar.gz |
Fixed qpid-stat to skip rows when the underlying data disappears during execution.
Removed keyword arg from "sort" to support Python 2.3.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@999918 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
-rw-r--r-- | python/qpid/disp.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/qpid/disp.py b/python/qpid/disp.py index 1b315c9d98..c29ea009de 100644 --- a/python/qpid/disp.py +++ b/python/qpid/disp.py @@ -221,7 +221,9 @@ class Sorter: list = [] for row in rows: list.append(Sortable(row, col)) - list.sort(reverse=not inc) + list.sort() + if not inc: + list.reverse() count = 0 self.sorted = [] for row in list: |