cpython: 240adc564539 (original) (raw)

Mercurial > cpython

changeset 84791:240adc564539

Fix #18530. Remove extra stat call from posixpath.ismount [#18530]

Brian Curtin brian@python.org
date Mon, 22 Jul 2013 13:07:52 -0500
parents 84d6c1c0665e
children ffe9d73b5f8d
files Lib/posixpath.py Misc/NEWS
diffstat 2 files changed, 17 insertions(+), 8 deletions(-)[+] [-] Lib/posixpath.py 22 Misc/NEWS 3

line wrap: on

line diff

--- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -182,18 +182,24 @@ def lexists(path): def ismount(path): """Test whether a path is a mount point"""

+

+ dev1 = s1.st_dev dev2 = s2.st_dev if dev1 != dev2:

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -162,6 +162,9 @@ Core and Builtins Library ------- +- Issue #18530: Remove additional stat call from posixpath.ismount.