Skip to content

Commit ee7da1d

Browse files
barneygaleencukou
andauthored
Update Lib/pathlib/_local.py
Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent dbc312c commit ee7da1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/pathlib/_local.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def __init__(self, path):
188188
self._mode = [None, None]
189189

190190
def _get_mode(self, *, follow_symlinks=True):
191-
idx = int(follow_symlinks)
191+
idx = bool(follow_symlinks)
192192
mode = self._mode[idx]
193193
if mode is None:
194194
try:

0 commit comments

Comments
 (0)