From b884e6d6e2ca7365d6a93482d211892fa141077e Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 14 Apr 2014 19:51:56 +0200 Subject: =?UTF-8?q?Fix=20#2339=20(put=20the=20more=20=E2=80=9Cimportant?= =?UTF-8?q?=E2=80=9D=20users=20at=20the=20bottom=20in=20the=20userlist=20w?= =?UTF-8?q?hen=20configured)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (one-line fix, and the others are for reformatting imports to be consistent) --- src/windows.py | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/windows.py b/src/windows.py index 997fb72b..cb1ccefc 100644 --- a/src/windows.py +++ b/src/windows.py @@ -12,30 +12,28 @@ the text window, the roster window, etc. A Tab (see tab.py) is composed of multiple Windows """ - import logging log = logging.getLogger(__name__) +import collections import curses import string from datetime import datetime from math import ceil, log10 -from config import config - from threading import RLock -from contact import Contact, Resource -from roster import RosterGroup -import poopt -from common import safeJID import common - import core +import poopt import singleton -import collections - +from common import safeJID +from config import config +from contact import Contact, Resource +from roster import RosterGroup from theming import get_theme, to_curses_attr, read_tuple, dump_tuple +from user import ROLE_DICT + FORMAT_CHAR = '\x19' # These are non-printable chars, so they should never appear in the input, @@ -247,7 +245,7 @@ class UserList(Win): if config.get('user_list_sort', 'desc').lower() == 'asc': y, x = self._win.getmaxyx() y -= 1 - users = sorted(users, reverse=True) + users = sorted(users) else: y = 0 users = sorted(users) -- cgit v1.2.3