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:
parent
59276ed5ef
commit
bfc4186b2a
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue