Skip to content

Commit

Permalink
fix: py2 warning message to be deprecated instead (#1431)
Browse files Browse the repository at this point in the history
  • Loading branch information
sriram-mv committed Sep 30, 2019
1 parent 11db934 commit af52032
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions samcli/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
]

DEPRECATION_NOTICE = (
"Warning : AWS SAM CLI will no longer support "
"installations on Python 2.7 starting on October 1st, 2019."
" Install AWS SAM CLI via https://docs.aws.amazon.com/serverless-application-model/"
"Deprecated : AWS SAM CLI no longer supports "
"installations on Python 2.7. "
"Install AWS SAM CLI via https://docs.aws.amazon.com/serverless-application-model/"
"latest/developerguide/serverless-sam-cli-install.html for continued support with new versions. \n"
)

Expand Down Expand Up @@ -70,7 +70,7 @@ def __init__(self, cmd_packages=None, *args, **kwargs):
self._commands = BaseCommand._set_commands(cmd_packages)

if sys.version_info.major == 2:
click.secho(DEPRECATION_NOTICE, fg="yellow", err=True)
click.secho(DEPRECATION_NOTICE, fg="red", err=True)

@staticmethod
def _set_commands(package_names):
Expand Down

0 comments on commit af52032

Please sign in to comment.