Skip to content

Commit 568cce4

Browse files
author
Samuel FORESTIER
committed
Fixes black formatting
1 parent 3b4f774 commit 568cce4

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/distro/distro.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,15 +1110,12 @@ def __resolve_chroot_symlink_as_needed(self, link_location: str) -> str:
11101110
try:
11111111
resolved = os.readlink(link_location)
11121112
except OSError: # includes case "not a symlink"
1113-
if (
1114-
os.path.commonprefix(
1115-
[
1116-
os.path.realpath(self.root_dir),
1117-
os.path.realpath(link_location),
1118-
]
1119-
)
1120-
!= os.path.realpath(self.root_dir)
1121-
):
1113+
if os.path.commonprefix(
1114+
[
1115+
os.path.realpath(self.root_dir),
1116+
os.path.realpath(link_location),
1117+
]
1118+
) != os.path.realpath(self.root_dir):
11221119
# `link_location` resolves outside of `self.root_dir`.
11231120
raise FileNotFoundError from None
11241121

0 commit comments

Comments
 (0)