mirror of https://github.com/zulip/zulip.git
pep8: Add compliance with rule E261 to find_add_class.py.
This commit is contained in:
parent
fef732d85b
commit
c0e1b49b68
|
@ -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)]
|
||||
|
|
Loading…
Reference in New Issue