pep8: Add compliance with rule E261 to find_add_class.py.

This commit is contained in:
Aditya Bansal 2017-05-07 20:23:31 +05:30 committed by Tim Abbott
parent fef732d85b
commit c0e1b49b68
1 changed files with 4 additions and 4 deletions

View File

@ -70,15 +70,15 @@ def display(fns):
def find(fns):
# type: (List[str]) -> List[Tuple[str, str]]
encountered = set() # type: Set[str]
tups = [] # type: List[Tuple[str, str]]
encountered = set() # type: Set[str]
tups = [] # type: List[Tuple[str, str]]
for fn in fns:
lines = list(open(fn))
fn = os.path.basename(fn)
module_classes = set() # type: Set[str]
module_classes = set() # type: Set[str]
for i, line in enumerate(lines):
if 'addClass' in line:
html_classes = [] # type: List[str]
html_classes = [] # type: List[str]
m = re.search('addClass\([\'"](.*?)[\'"]', line)
if m:
html_classes = [m.group(1)]