equal
deleted
inserted
replaced
720 name = tempfile.mktemp(dir=path) |
720 name = tempfile.mktemp(dir=path) |
721 try: |
721 try: |
722 os.symlink(".", name) |
722 os.symlink(".", name) |
723 os.unlink(name) |
723 os.unlink(name) |
724 return True |
724 return True |
725 except OSError: |
725 except (OSError, AttributeError): |
726 return False |
726 return False |
727 |
727 |
728 def linkfunc(path, fallback): |
728 def linkfunc(path, fallback): |
729 '''return an is_link() function with default to fallback''' |
729 '''return an is_link() function with default to fallback''' |
730 if checklink(path): |
730 if checklink(path): |