mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 03:11:54 +00:00
pep8: Add compliance with rule E261 to html_branches.py.
This commit is contained in:
committed by
Tim Abbott
parent
ffb8440eef
commit
47e7437932
@@ -121,7 +121,7 @@ def split_for_id_and_class(element):
|
||||
# attributes from HTML tags. This also takes care of template variables
|
||||
# in string during splitting process. For eg. 'red black {{ a|b|c }}'
|
||||
# is split as ['red', 'black', '{{ a|b|c }}']
|
||||
outside_braces = True # type: bool
|
||||
outside_braces = True # type: bool
|
||||
lst = []
|
||||
s = ''
|
||||
|
||||
@@ -193,7 +193,7 @@ def html_tag_tree(text):
|
||||
|
||||
def build_id_dict(templates):
|
||||
# type: (List[str]) -> (Dict[str,List[str]])
|
||||
template_id_dict = defaultdict(list) # type: (Dict[str,List[str]])
|
||||
template_id_dict = defaultdict(list) # type: (Dict[str,List[str]])
|
||||
|
||||
for fn in templates:
|
||||
text = open(fn).read()
|
||||
|
||||
Reference in New Issue
Block a user