Show More
@@ -777,13 +777,13 b' def selectfile(afile_orig, bfile_orig, h' | |||
|
777 | 777 | if count == 0: |
|
778 | 778 | return path.rstrip() |
|
779 | 779 | while count > 0: |
|
780 |
i = path.find( |
|
|
780 | i = path.find('/', i) | |
|
781 | 781 | if i == -1: |
|
782 | 782 | raise PatchError(_("unable to strip away %d dirs from %s") % |
|
783 | 783 | (count, path)) |
|
784 | 784 | i += 1 |
|
785 | 785 | # consume '//' in the path |
|
786 |
while i < pathlen - 1 and path[i] == |
|
|
786 | while i < pathlen - 1 and path[i] == '/': | |
|
787 | 787 | i += 1 |
|
788 | 788 | count -= 1 |
|
789 | 789 | return path[i:].rstrip() |
General Comments 0
You need to be logged in to leave comments.
Login now