Skip to content

Commit

Permalink
Log deprecation warning for Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Oct 15, 2024
1 parent c8392dc commit 7970e1f
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 7970e1f

Please sign in to comment.