command: Remove unneeded has_count check.

This commit is contained in:
Florian Bruhin 2014-10-08 07:40:53 +02:00
parent 1a00d6168c
commit d32a0c30c6

View File

@ -323,9 +323,6 @@ class Command:
args: The positional argument list. Gets modified directly. args: The positional argument list. Gets modified directly.
kwargs: The keyword argument dict. Gets modified directly. kwargs: The keyword argument dict. Gets modified directly.
""" """
if not self.has_count:
raise TypeError("{}: count argument given with a command which "
"does not support count!".format(self.name))
if param.kind == inspect.Parameter.POSITIONAL_OR_KEYWORD: if param.kind == inspect.Parameter.POSITIONAL_OR_KEYWORD:
if self._count is not None: if self._count is not None:
args.append(self._count) args.append(self._count)