Skip to content

Commit ba70c96

Browse files
authored
Merge pull request #75 from GeckoEidechse/fix/remove-distutils-strtobool-dependency
fix: Remove `distutils.strtobool` and replace with `BooleanOptionalAction``
2 parents caa1792 + c198760 commit ba70c96

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

run-clang-format.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import sys
2424
import traceback
2525
import re
26-
from distutils.util import strtobool
2726

2827
from functools import partial
2928

@@ -311,7 +310,7 @@ def main():
311310
parser.add_argument(
312311
'-i',
313312
'--inplace',
314-
type=lambda x: bool(strtobool(x)),
313+
action=argparse.BooleanOptionalAction,
315314
default=False,
316315
help='Just fix files (`clang-format -i`) instead of returning a diff')
317316

0 commit comments

Comments
 (0)