1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-02-04 07:51:50 +00:00

Reformat everything.

This commit is contained in:
Felix Fontein 2025-11-01 12:08:41 +01:00
parent 3f2213791a
commit 340ff8586d
1008 changed files with 61301 additions and 58309 deletions

View file

@ -32,9 +32,9 @@ def ismount(path):
return False
if isinstance(path, bytes):
parent = os.path.join(path, b'..')
parent = os.path.join(path, b"..")
else:
parent = os.path.join(path, '..')
parent = os.path.join(path, "..")
parent = os.path.realpath(parent)
try:
s2 = os.lstat(parent)
@ -44,9 +44,9 @@ def ismount(path):
dev1 = s1.st_dev
dev2 = s2.st_dev
if dev1 != dev2:
return True # path/.. on a different device as path
return True # path/.. on a different device as path
ino1 = s1.st_ino
ino2 = s2.st_ino
if ino1 == ino2:
return True # path/.. is the same i-node as path
return True # path/.. is the same i-node as path
return False