Submitter | phabricator |
---|---|
Date | Dec. 13, 2021, 6:11 a.m. |
Message ID | <differential-rev-PHID-DREV-ikmnwemkooavagrbbyar-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/50232/ |
State | New |
Headers | show |
Comments
Patch
diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -266,7 +266,10 @@ @check("suidbit", "setuid and setgid bit") def has_suidbit(): - if getattr(os, "statvfs", None) is None or getattr(os, "ST_NOSUID") is None: + if ( + getattr(os, "statvfs", None) is None + or getattr(os, "ST_NOSUID", None) is None + ): return False return bool(os.statvfs('.').f_flag & os.ST_NOSUID)