diff options
| author | Ultrabug <ultrabug@gentoo.org> | 2015-02-21 14:55:38 +0100 |
|---|---|---|
| committer | Ultrabug <ultrabug@gentoo.org> | 2015-02-21 14:55:38 +0100 |
| commit | 267065406757cb3632da2f875be11b0771523f00 (patch) | |
| tree | fbd022045bb6dcfe3ca0fb6d232f33d7c1c6538b /py3status/__init__.py | |
| parent | 151d108c57cc13ff7b140e78f746b1e6ba8e327c (diff) | |
fix issue #64, ensure modules methods are always iterated alphabetically thx to @shankargopal
Diffstat (limited to 'py3status/__init__.py')
| -rwxr-xr-x | py3status/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/py3status/__init__.py b/py3status/__init__.py index f16a945..3e044f9 100755 --- a/py3status/__init__.py +++ b/py3status/__init__.py @@ -5,6 +5,7 @@ import os import select import sys +from collections import OrderedDict from contextlib import contextmanager from copy import deepcopy from datetime import datetime, timedelta @@ -846,7 +847,7 @@ class Module(Thread): self.i3status_thread = i3_thread self.last_output = [] self.lock = lock - self.methods = {} + self.methods = OrderedDict() self.module_class = None self.module_inst = ''.join(module.split(' ')[1:]) self.module_name = module.split(' ')[0] |
