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 | e81b28f6fddae1c57fb493afb8ace321c61fbd79 (patch) | |
| tree | ae32e8d45d53ad5f00abf7cca1e8a0d946fd48c8 /python | |
| parent | 0838db3254710f7f2d1190fa5b1fc90f33525a05 (diff) | |
| download | qpid-python-e81b28f6fddae1c57fb493afb8ace321c61fbd79.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: |
