Skip to content

Commit

Permalink
Merge pull request #2298 from SnoopJeDi/update-warning-text
Browse files Browse the repository at this point in the history
Remove Python EOL warnings
  • Loading branch information
dgw authored Jun 8, 2022
2 parents df465a7 + da67b6a commit e38942e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,6 @@
# Maybe not the best way to do this, but this question is tiring.
raise ImportError('Sopel requires Python 3.7+.')

# Py3.7 EOL: https://www.python.org/dev/peps/pep-0537/#and-beyond-schedule
if sys.version_info < (3, 8):
# TODO check this warning before releasing Sopel 8.0
print(
'Warning: Python 3.7 will reach end of life by June 2022 '
'and will receive no further updates. '
'Sopel 9.0 will drop support for it.',
file=sys.stderr,
)


def read_reqs(path):
with open(path, 'r') as fil:
Expand Down
10 changes: 0 additions & 10 deletions sopel/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,6 @@
tools.stderr('Error: Sopel requires Python 3.7+.')
sys.exit(1)

# Py3.7 EOL: https://www.python.org/dev/peps/pep-0537/#and-beyond-schedule
if sys.version_info < (3, 8):
# TODO check this warning before releasing Sopel 8.0
print(
'Warning: Python 3.7 will reach end of life by June 2022 '
'and will receive no further updates. '
'Sopel 9.0 will drop support for it.',
file=sys.stderr,
)

LOGGER = logging.getLogger(__name__)

ERR_CODE = 1
Expand Down

0 comments on commit e38942e

Please sign in to comment.