Show More
@@ -357,12 +357,8 b' def walkrepos(path, followsym=False, see' | |||
|
357 | 357 | samestat = getattr(os.path, 'samestat', None) |
|
358 | 358 | if followsym and samestat is not None: |
|
359 | 359 | def adddir(dirlst, dirname): |
|
360 | match = False | |
|
361 | 360 | dirstat = os.stat(dirname) |
|
362 |
for lstdirstat in dirlst |
|
|
363 | if samestat(dirstat, lstdirstat): | |
|
364 | match = True | |
|
365 | break | |
|
361 | match = any(samestat(dirstat, lstdirstat) for lstdirstat in dirlst) | |
|
366 | 362 | if not match: |
|
367 | 363 | dirlst.append(dirstat) |
|
368 | 364 | return not match |
General Comments 0
You need to be logged in to leave comments.
Login now