Skip to content

Commit

Permalink
pyupgrade --py39-plus stressor/*.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed Apr 27, 2024
1 parent 5df7ca8 commit 24a9b59
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stressor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""
Current version number.
Expand All @@ -15,5 +14,6 @@
When pywin32 is installed, number must be a.b.c for MSI builds?
"3.0.0a4" seems not to work in this case!
"""

# flake8: noqa
__version__ = "0.5.3-a1"
11 changes: 8 additions & 3 deletions stressor/config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,14 @@ def _check_type(key, types):
return True

sections = set(cfg.keys())
known_sections = set(
("file_version", "config", "context", "sessions", "scenario", "sequences")
)
known_sections = {
"file_version",
"config",
"context",
"sessions",
"scenario",
"sequences",
}

file_version = cfg.get("file_version", "")
if not file_version.startswith("stressor#"):
Expand Down

0 comments on commit 24a9b59

Please # to comment.