Drop unneeded .keys()

This commit is contained in:
Florian Bruhin 2016-07-11 13:13:16 +02:00
parent a5d2d3109e
commit a64937122d

View File

@ -213,7 +213,7 @@ class CommandRunner(QObject):
cmdstr modified to the matching completion or unmodified
"""
matches = []
for valid_command in cmdutils.cmd_dict.keys():
for valid_command in cmdutils.cmd_dict:
if valid_command.find(cmdstr) == 0:
matches.append(valid_command)
if len(matches) == 1: