def samefile(path1, path2, user=None):
def tr(p):<EOL><INDENT>return abspath(normpath(realpath(p)), user=user)<EOL><DEDENT>return tr(path1) == tr(path2)<EOL>
Return :obj:`True` if both path arguments refer to the same path.