bridge: fix a `(a and b) or c` case

...this got merged in parallel to the ruff work, so it slipped through
the cracks.
This commit is contained in:
Allison Karlitskaya 2024-04-16 15:54:28 +02:00
parent 59276ed5ef
commit bfc4186b2a
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ logger = logging.getLogger(__name__)
@functools.lru_cache()
def my_umask() -> int:
match = re.search(r'^Umask:\s*0([0-7]*)$', Path('/proc/self/status').read_text(), re.M)
return match and int(match.group(1), 8) or 0o077
return (match and int(match.group(1), 8)) or 0o077
def tag_from_stat(buf):