Skip to content

Commit

Permalink
Merge pull request #2940 from locustio/log-python-3.9-support-as-depr…
Browse files Browse the repository at this point in the history
…ecated

Log deprecation warning for Python 3.9
  • Loading branch information
cyberw authored Oct 15, 2024
2 parents b093142 + 7970e1f commit b6f747d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions locust/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,9 @@ def kill_workers(children):

greenlet_exception_handler = greenlet_exception_logger(logger)

if sys.version_info < (3, 10):
logger.warning("Python 3.9 support is deprecated and will be removed soon")

if options.stop_timeout:
try:
options.stop_timeout = parse_timespan(options.stop_timeout)
Expand Down

0 comments on commit b6f747d

Please sign in to comment.