mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-59616: Support os.chmod(follow_symlinks=True) and os.lchmod() on Windows (GH-113049)
This commit is contained in:
parent
c6e953be12
commit
29f7eb4859
9 changed files with 93 additions and 28 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue