1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

improve os_path_samefile

This commit is contained in:
Malte 2018-12-17 17:13:38 +01:00
parent 35a909bee5
commit 3fc3dfb802

View File

@ -247,7 +247,7 @@ buildstatus_symbols = {'succeeded': '.',
def os_path_samefile(path1, path2):
try:
return os.path.samefile(path1, path2)
except:
except AttributeError:
return os.path.realpath(path1) == os.path.realpath(path2)
class File: