##// END OF EJS Templates
STY: Define dirs as a single expression.
Scott Sanderson -
Show More
@@ -119,8 +119,8 b' class APITest(NotebookTestBase):'
119 ]
119 ]
120 hidden_dirs = ['.hidden', '__pycache__']
120 hidden_dirs = ['.hidden', '__pycache__']
121
121
122 dirs = uniq_stable([py3compat.cast_unicode(d) for (d,n) in dirs_nbs])
122 # Don't include root dir.
123 del dirs[0] # remove ''
123 dirs = uniq_stable([py3compat.cast_unicode(d) for (d,n) in dirs_nbs[1:]])
124 top_level_dirs = {normalize('NFC', d.split('/')[0]) for d in dirs}
124 top_level_dirs = {normalize('NFC', d.split('/')[0]) for d in dirs}
125
125
126 @staticmethod
126 @staticmethod
General Comments 0
You need to be logged in to leave comments. Login now