STY: Define dirs as a single expression.

This commit is contained in:
Scott Sanderson 2014-12-16 14:23:44 -05:00 committed by Min RK
parent f7cf204b25
commit af7d1cdb50

View File

@ -119,8 +119,8 @@ class APITest(NotebookTestBase):
]
hidden_dirs = ['.hidden', '__pycache__']
dirs = uniq_stable([py3compat.cast_unicode(d) for (d,n) in dirs_nbs])
del dirs[0] # remove ''
# Don't include root dir.
dirs = uniq_stable([py3compat.cast_unicode(d) for (d,n) in dirs_nbs[1:]])
top_level_dirs = {normalize('NFC', d.split('/')[0]) for d in dirs}
@staticmethod