Skip to content

Commit 8f84de7

Browse files
authored
Merge pull request #2213 from sopel-irc/plugins-py2-TODO
plugins: execute TODO that was waiting for end of py2 support
2 parents fbe6ad4 + 9af117a commit 8f84de7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sopel/plugins/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,6 @@ def get_usable_plugins(settings):
222222
(plugin.name, (plugin, is_enabled))
223223
for plugin, is_enabled in enumerate_plugins(settings))
224224
# reset coretasks's position at the end of the loading queue
225-
# Python 2's OrderedDict does not have a `move_to_end` method
226-
# TODO: replace by plugins_info.move_to_end('coretasks') for Python 3
227-
core_info = plugins_info.pop('coretasks')
228-
plugins_info['coretasks'] = core_info
225+
plugins_info.move_to_end('coretasks')
229226

230227
return plugins_info

0 commit comments

Comments
 (0)