#351 Speed-up mvn rules, pep8 fixes

This commit is contained in:
nvbn
2015-08-27 16:10:50 +03:00
parent 9103c1ffd5
commit f2a7364e8c
3 changed files with 30 additions and 14 deletions
+2 -1
View File
@@ -138,7 +138,8 @@ def replace_command(command, broken, matched):
def is_app(command, *app_names):
"""Returns `True` if command is call to one of passed app names."""
for name in app_names:
if command.script.startswith(u'{} '.format(name)):
if command.script == name \
or command.script.startswith(u'{} '.format(name)):
return True
return False