Skip to content

Commit

Permalink
Merge pull request #2403 from locustio/deprecate-python-3.7
Browse files Browse the repository at this point in the history
Log a deprecation warning in Python 3.7
  • Loading branch information
cyberw authored Sep 21, 2023
2 parents 2da3a2f + d67a2f8 commit 76ffccb
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 76ffccb

Please sign in to comment.