Skip to content

Commit c71d0bf

Browse files
committed
Revert "Merge pull request #75 from GeckoEidechse/fix/remove-distutils-strtobool-dependency"
This reverts commit ba70c96, reversing changes made to caa1792.
1 parent 94868e2 commit c71d0bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

run-clang-format.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import sys
2424
import traceback
2525
import re
26+
from distutils.util import strtobool
2627

2728
from functools import partial
2829

@@ -310,7 +311,7 @@ def main():
310311
parser.add_argument(
311312
'-i',
312313
'--inplace',
313-
action=argparse.BooleanOptionalAction,
314+
type=lambda x: bool(strtobool(x)),
314315
default=False,
315316
help='Just fix files (`clang-format -i`) instead of returning a diff')
316317

0 commit comments

Comments
 (0)