File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 5.0.1] - 2024-08-12
8
+
9
+ BUG: fix a crash in inifix-format on single-core machines
10
+
7
11
## [ 5.0.0] - 2024-08-09
8
12
9
13
### API changes
Original file line number Diff line number Diff line change 5
5
from .validation import validate_inifile_schema
6
6
from .format import format_string
7
7
8
- __version__ = "5.0.0 "
8
+ __version__ = "5.0.1 "
Original file line number Diff line number Diff line change @@ -168,7 +168,8 @@ def main(argv: list[str] | None = None) -> int:
168
168
args_report_noop = args .report_noop ,
169
169
args_diff = args .diff ,
170
170
)
171
- with ThreadPoolExecutor (max_workers = int ((os .cpu_count () or 2 ) / 2 )) as executor :
171
+ cpu_count = os .cpu_count () or 1
172
+ with ThreadPoolExecutor (max_workers = max (1 , int (cpu_count / 2 ))) as executor :
172
173
futures = [executor .submit (closure , file ) for file in args .files ]
173
174
results = [f .result () for f in futures ]
174
175
You can’t perform that action at this time.
0 commit comments