Skip to content

Commit 65a2bce

Browse files
authored
gh-108717: Speedup os.DirEntry.is_junction function (#108718)
1 parent 6f8411c commit 65a2bce

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

Modules/clinic/posixmodule.c.h

Lines changed: 5 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/posixmodule.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14576,15 +14576,13 @@ os_DirEntry_is_symlink_impl(DirEntry *self, PyTypeObject *defining_class)
1457614576

1457714577
/*[clinic input]
1457814578
os.DirEntry.is_junction -> bool
14579-
defining_class: defining_class
14580-
/
1458114579
1458214580
Return True if the entry is a junction; cached per entry.
1458314581
[clinic start generated code]*/
1458414582

1458514583
static int
14586-
os_DirEntry_is_junction_impl(DirEntry *self, PyTypeObject *defining_class)
14587-
/*[clinic end generated code: output=7061a07b0ef2cd1f input=475cd36fb7d4723f]*/
14584+
os_DirEntry_is_junction_impl(DirEntry *self)
14585+
/*[clinic end generated code: output=97f64d5d99eeccb5 input=4fc8e701eea118a1]*/
1458814586
{
1458914587
#ifdef MS_WINDOWS
1459014588
return self->win32_lstat.st_reparse_tag == IO_REPARSE_TAG_MOUNT_POINT;

0 commit comments

Comments
 (0)