diff options
| author | Ultrabug <ultrabug@gentoo.org> | 2013-04-19 17:33:07 +0200 |
|---|---|---|
| committer | Ultrabug <ultrabug@gentoo.org> | 2013-04-19 17:33:07 +0200 |
| commit | bf0184f3d00c8672afd06cf08af1fddf0ea645a9 (patch) | |
| tree | b5e7047eaad660e28ab8cf776e420fb3b9665b7c | |
| parent | 10cde52700f6584836f7905c973b433ab1b6258c (diff) | |
fix issue #5 thx to @drahier for reporting
| -rwxr-xr-x | py3status/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py3status/__init__.py b/py3status/__init__.py index 956a585..17f67a2 100755 --- a/py3status/__init__.py +++ b/py3status/__init__.py @@ -103,11 +103,11 @@ def print_output(prefix, output_list, modules_cache): if j['name'] == json['name']: output_list.pop(n) break - inject.insert(index, json) + inject.append( (index, json) ) # inject back user classes in the right order - for i in reversed(inject): - output_list.insert(0, i) + for index, json in [ tup for tup in inject ]: + output_list.insert(index, json) output = prefix+dumps(output_list) print_line(output) |
