Show More
@@ -225,12 +225,11 b' def has_hardlink():' | |||||
225 | os.close(fh) |
|
225 | os.close(fh) | |
226 | name = tempfile.mktemp(dir='.', prefix=tempprefix) |
|
226 | name = tempfile.mktemp(dir='.', prefix=tempprefix) | |
227 | try: |
|
227 | try: | |
228 | try: |
|
228 | util.oslink(fn, name) | |
229 |
|
|
229 | os.unlink(name) | |
230 | os.unlink(name) |
|
230 | return True | |
231 | return True |
|
231 | except OSError: | |
232 | except OSError: |
|
232 | return False | |
233 | return False |
|
|||
234 | finally: |
|
233 | finally: | |
235 | os.unlink(fn) |
|
234 | os.unlink(fn) | |
236 |
|
235 |
General Comments 0
You need to be logged in to leave comments.
Login now