Skip to content

Commit

Permalink
Merge pull request #75 from GeckoEidechse/fix/remove-distutils-strtob…
Browse files Browse the repository at this point in the history
…ool-dependency

fix: Remove `distutils.strtobool` and replace with `BooleanOptionalAction``
  • Loading branch information
DoozyX authored Sep 4, 2024
2 parents caa1792 + c198760 commit ba70c96
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions run-clang-format.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import sys
import traceback
import re
from distutils.util import strtobool

from functools import partial

Expand Down Expand Up @@ -311,7 +310,7 @@ def main():
parser.add_argument(
'-i',
'--inplace',
type=lambda x: bool(strtobool(x)),
action=argparse.BooleanOptionalAction,
default=False,
help='Just fix files (`clang-format -i`) instead of returning a diff')

Expand Down

0 comments on commit ba70c96

Please sign in to comment.