diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-12-17 01:06:11 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-12-17 01:06:11 +0100 |
commit | 0ccc4a3c6a7070ea8209bf32648ec501d0e6d9c0 (patch) | |
tree | 4dc705d514024799b9556bbb08993bf9362b3065 | |
parent | 97e7057792ca4a517e9ec5c2b2dc88bef5d9b536 (diff) | |
download | todo-0ccc4a3c6a7070ea8209bf32648ec501d0e6d9c0.tar.xz |
todo: remove unnecessary unsorted intermidiate dict
-rwxr-xr-x | todo | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -111,9 +111,7 @@ def main(): config = parse_args(arguments) todo_dict = toml.load(config.todo_file) - - unsorted = OrderedDict(sorted(todo_dict.items())) - todo_dict = sort_dict(unsorted, config.sort_key, config.reverse) + todo_dict = sort_dict(todo_dict, config.sort_key, config.reverse) print('todo file: {}'.format(config.todo_file)) for t_id in todo_dict: |