changeset 5626:07aa5349ad8b

MoinMoin.widget.browser.sort_table: simplified isinstance call
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 11 Mar 2010 10:07:00 +0100
parents 78f1be3c8777
children dd04e0178c3d
files MoinMoin/widget/browser.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/widget/browser.py	Wed Mar 10 16:14:56 2010 +0100
+++ b/MoinMoin/widget/browser.py	Thu Mar 11 10:07:00 2010 +0100
@@ -34,8 +34,7 @@
     @param index: column to sort. By a given list it does a multiple sort
     @param reverse: reverse sort
     """
-    if not (sort_columns and isinstance(sort_columns, list) or
-            isinstance(sort_columns, tuple)):
+    if not (sort_columns and isinstance(sort_columns, (list, tuple))):
         # don't sort if no list is given
         return rows
     for idx in reversed(sort_columns):