File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 8
8
9
9
import codecs
10
10
import os
11
- from collections import OrderedDict
12
11
13
12
__copyright__ = "Copyright 2018 Colour Developers"
14
13
__license__ = "New BSD License - https://opensource.org/licenses/BSD-3-Clause"
46
45
]
47
46
48
47
49
- def extract_todo_items (root_directory : str ) -> OrderedDict :
48
+ def extract_todo_items (root_directory : str ) -> dict :
50
49
"""
51
50
Extract the TODO items from given directory.
52
51
@@ -57,11 +56,11 @@ def extract_todo_items(root_directory: str) -> OrderedDict:
57
56
58
57
Returns
59
58
-------
60
- :class:`collections.OrderedDict `
59
+ :class:`dict `
61
60
TODO items.
62
61
"""
63
62
64
- todo_items = OrderedDict ()
63
+ todo_items = {}
65
64
for root , dirnames , filenames in os .walk (root_directory ):
66
65
for filename in filenames :
67
66
if not filename .endswith (".py" ):
@@ -97,7 +96,7 @@ def extract_todo_items(root_directory: str) -> OrderedDict:
97
96
return todo_items
98
97
99
98
100
- def export_todo_items (todo_items : OrderedDict , file_path : str ):
99
+ def export_todo_items (todo_items : dict , file_path : str ):
101
100
"""
102
101
Export TODO items to given file.
103
102
You can’t perform that action at this time.
0 commit comments