summaryrefslogtreecommitdiffstats
path: root/Tools/clinic
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-12-14 11:28:37 (GMT)
committerGitHub <noreply@github.com>2023-12-14 11:28:37 (GMT)
commit29f7eb4859bfc27a4c93f36449ca7d810e13288b (patch)
tree6404319a95dc2d6845f34e4bee59ff70c46d387a /Tools/clinic
parentc6e953be125c491226adc1a5bc9c804ce256aa17 (diff)
downloadcpython-29f7eb4859bfc27a4c93f36449ca7d810e13288b.zip
cpython-29f7eb4859bfc27a4c93f36449ca7d810e13288b.tar.gz
cpython-29f7eb4859bfc27a4c93f36449ca7d810e13288b.tar.bz2
gh-59616: Support os.chmod(follow_symlinks=True) and os.lchmod() on Windows (GH-113049)
Diffstat (limited to 'Tools/clinic')
-rwxr-xr-xTools/clinic/clinic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
index 5ec0887..a9bf110 100755
--- a/Tools/clinic/clinic.py
+++ b/Tools/clinic/clinic.py
@@ -3737,7 +3737,7 @@ class bool_converter(CConverter):
self.format_unit = 'i'
elif accept != {object}:
fail(f"bool_converter: illegal 'accept' argument {accept!r}")
- if self.default is not unspecified:
+ if self.default is not unspecified and self.default is not unknown:
self.default = bool(self.default)
self.c_default = str(int(self.default))