remove a redundant slash pointed out by @mrmachine

This commit is contained in:
Adrian Sampson 2013-02-03 23:17:31 -08:00
parent be83c38320
commit b6e7e41269

View file

@ -68,7 +68,7 @@ def albums_in_dir(path):
# and move on to the next directory. If not, stop collapsing.
if collapse_paths:
if (not collapse_pat and collapse_paths[0] in ancestry(root)) or \
(collapse_pat and \
(collapse_pat and
collapse_pat.match(os.path.basename(root))):
# Still collapsing.
collapse_paths.append(root)