Skip to content

Commit

Permalink
Log a deprecation warning in Python 3.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Sep 21, 2023
1 parent 2da3a2f commit d67a2f8
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 @@ -210,6 +210,9 @@ def is_valid_percentile(parameter):
See https://github.com/locustio/locust/wiki/Installation#increasing-maximum-number-of-open-files-limit for more info."""
)

if sys.version_info <= (3, 8):
logger.info("Python 3.7 support is deprecated and will be removed soon")

# create locust Environment
locustfile_path = None if not locustfile else os.path.basename(locustfile)

Expand Down

0 comments on commit d67a2f8

Please sign in to comment.