#N/A: Stop changing Command inside rules

This commit is contained in:
Vladimir Iakovlev
2016-10-08 12:18:33 +02:00
parent 4d714994a3
commit 5b535077bf
9 changed files with 29 additions and 22 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ def is_app(command, *app_names, **kwargs):
if kwargs:
raise TypeError("got an unexpected keyword argument '{}'".format(kwargs.keys()))
if command.script_parts is not None and len(command.script_parts) > at_least:
if len(command.script_parts) > at_least:
return command.script_parts[0] in app_names
return False