tiny line wrap change

This commit is contained in:
Adrian Sampson 2013-02-03 23:08:25 -08:00
parent 7456ebf38b
commit be83c38320

View file

@ -67,9 +67,9 @@ def albums_in_dir(path):
# and add the current directory. If so, just add the directory
# 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.match(os.path.basename(root))):
if (not collapse_pat and collapse_paths[0] in ancestry(root)) or \
(collapse_pat and \
collapse_pat.match(os.path.basename(root))):
# Still collapsing.
collapse_paths.append(root)
collapse_items += items