Skip to content

Commit e873ece

Browse files
committed
Drop remaining "OrderedDict" usages.
1 parent 1cc5f3f commit e873ece

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

utilities/export_todo.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import codecs
1010
import os
11-
from collections import OrderedDict
1211

1312
__copyright__ = "Copyright 2018 Colour Developers"
1413
__license__ = "New BSD License - https://opensource.org/licenses/BSD-3-Clause"
@@ -46,7 +45,7 @@
4645
]
4746

4847

49-
def extract_todo_items(root_directory: str) -> OrderedDict:
48+
def extract_todo_items(root_directory: str) -> dict:
5049
"""
5150
Extract the TODO items from given directory.
5251
@@ -57,11 +56,11 @@ def extract_todo_items(root_directory: str) -> OrderedDict:
5756
5857
Returns
5958
-------
60-
:class:`collections.OrderedDict`
59+
:class:`dict`
6160
TODO items.
6261
"""
6362

64-
todo_items = OrderedDict()
63+
todo_items = {}
6564
for root, dirnames, filenames in os.walk(root_directory):
6665
for filename in filenames:
6766
if not filename.endswith(".py"):
@@ -97,7 +96,7 @@ def extract_todo_items(root_directory: str) -> OrderedDict:
9796
return todo_items
9897

9998

100-
def export_todo_items(todo_items: OrderedDict, file_path: str):
99+
def export_todo_items(todo_items: dict, file_path: str):
101100
"""
102101
Export TODO items to given file.
103102

0 commit comments

Comments
 (0)