Switch to a more user-friendly warning style

This commit is contained in:
Joe Rickerby
2018-04-08 18:42:47 +01:00
parent c9c54602ed
commit 94e33cd7e3
2 changed files with 20 additions and 4 deletions
-4
View File
@@ -9,10 +9,6 @@ def prepare_command(command, project):
For example, used in the test_command option, to specify the path to the
tests directory.
'''
if '{python}' in command or '{pip}' in command:
warnings.warn("'{python}' and '{pip}' are no longer needed, and have been deprecated. Simply use 'python' or 'pip' instead.",
DeprecationWarning)
return command.format(python='python', pip='pip', project=project)