Remove unnecessary date conditional for Python 2 EOL warning (#1053)

Since we're past the end of 2019, so the conditional is always true.

Closes @W-7952394@.

[skip changelog]
This commit is contained in:
Ed Morley
2020-08-12 22:49:31 +01:00
committed by GitHub
parent a510c47b26
commit 3fa3f15d35
2 changed files with 4 additions and 14 deletions
+2 -4
View File
@@ -52,11 +52,9 @@ if curl --output /dev/null --silent --head --fail "$VENDORED_PYTHON"; then
fi
fi
if [[ "$PYTHON_VERSION" == $PY27* ]]; then
puts-warn "$PYTHON_2_EOL_UPDATE"
echo " Learn More: https://devcenter.heroku.com/articles/python-2-7-eol-faq"
# security update note
if [[ "$(date "+%Y")" -gt "2019" ]]; then
puts-warn "$PYTHON_2_EOL_UPDATE"
echo " Learn More: https://devcenter.heroku.com/articles/python-2-7-eol-faq"
fi
if [ "$PYTHON_VERSION" != "$LATEST_27" ]; then
puts-warn "$ONLY_SUPPORTED_2_VERSION" "$LATEST_27"
echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"