diff options
Diffstat (limited to 'src/gajim-remote.py')
-rwxr-xr-x | src/gajim-remote.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gajim-remote.py b/src/gajim-remote.py index 241e8d221..f6ee2d968 100755 --- a/src/gajim-remote.py +++ b/src/gajim-remote.py @@ -341,8 +341,7 @@ class GajimRemote: for account_dict in res: print self.print_info(0, account_dict, True) elif self.command == 'prefs_list': - pref_keys = res.keys() - pref_keys.sort() + pref_keys = sorted(res.keys()) for pref_key in pref_keys: result = '%s = %s' % (pref_key, res[pref_key]) if isinstance(result, unicode): @@ -421,8 +420,7 @@ class GajimRemote: def compose_help(self): ''' print usage, and list available commands ''' str = _('Usage: %s command [arguments]\nCommand is one of:\n' ) % BASENAME - commands = self.commands.keys() - commands.sort() + commands = sorted(self.commands.keys()) for command in commands: str += ' ' + command for argument in self.commands[command][1]: |