Add missing docstring

This commit is contained in:
Florian Bruhin 2017-10-04 06:45:27 +02:00
parent cdf0cf56fa
commit ae4d5153b9

View File

@ -98,6 +98,7 @@ class KeyHintView(QLabel):
for glob in config.val.keyhint.blacklist)
def takes_count(cmdstr):
"""Return true iff this command can take a count argument."""
cmdname = cmdstr.split(' ')[0]
cmd = cmdutils.cmd_dict.get(cmdname)
return cmd and cmd.takes_count()