##// END OF EJS Templates
flake8: fix E125 continuation line with same indent as next logical line
Mads Kiilerich -
r7733:f73a1103 default
parent child Browse files
Show More
@@ -90,7 +90,8 b' class AnnotateHtmlFormatter(HtmlFormatte'
90 self.order = order or ('ls', 'annotate', 'code')
90 self.order = order or ('ls', 'annotate', 'code')
91 headers = options.pop('headers', None)
91 headers = options.pop('headers', None)
92 if headers and not ('ls' in headers and 'annotate' in headers and
92 if headers and not ('ls' in headers and 'annotate' in headers and
93 'code' in headers):
93 'code' in headers
94 ):
94 raise ValueError("If headers option dict is specified it must "
95 raise ValueError("If headers option dict is specified it must "
95 "all 'ls', 'annotate' and 'code' keys")
96 "all 'ls', 'annotate' and 'code' keys")
96 self.headers = headers
97 self.headers = headers
@@ -126,7 +126,8 b' class Page(_Page):'
126 symbol_previous='<', symbol_next='>',
126 symbol_previous='<', symbol_next='>',
127 link_attr=None,
127 link_attr=None,
128 curpage_attr=None,
128 curpage_attr=None,
129 dotdot_attr=None, **kwargs):
129 dotdot_attr=None, **kwargs
130 ):
130 self.curpage_attr = curpage_attr or {'class': 'active'}
131 self.curpage_attr = curpage_attr or {'class': 'active'}
131 self.separator = separator
132 self.separator = separator
132 self.pager_kwargs = kwargs
133 self.pager_kwargs = kwargs
@@ -304,7 +304,8 b' def age(prevdate, show_short_version=Fal'
304 month_lengths = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
304 month_lengths = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
305 if deltas['day'] < 0:
305 if deltas['day'] < 0:
306 if prevdate.month == 2 and (prevdate.year % 4 == 0 and
306 if prevdate.month == 2 and (prevdate.year % 4 == 0 and
307 (prevdate.year % 100 != 0 or prevdate.year % 400 == 0)):
307 (prevdate.year % 100 != 0 or prevdate.year % 400 == 0)
308 ):
308 deltas['day'] += 29
309 deltas['day'] += 29
309 else:
310 else:
310 deltas['day'] += month_lengths[prevdate.month - 1]
311 deltas['day'] += month_lengths[prevdate.month - 1]
@@ -95,7 +95,8 b' class GitInMemoryChangeset(BaseInMemoryC'
95 new_trees.append(parent)
95 new_trees.append(parent)
96 # Update ancestors
96 # Update ancestors
97 for parent, tree, path in reversed([(a[1], b[1], b[0]) for a, b in
97 for parent, tree, path in reversed([(a[1], b[1], b[0]) for a, b in
98 zip(ancestors, ancestors[1:])]):
98 zip(ancestors, ancestors[1:])]
99 ):
99 parent[path] = stat.S_IFDIR, tree.id
100 parent[path] = stat.S_IFDIR, tree.id
100 object_store.add_object(tree)
101 object_store.add_object(tree)
101
102
@@ -62,7 +62,8 b' class AnnotateHtmlFormatter(HtmlFormatte'
62 self.order = order or ('ls', 'annotate', 'code')
62 self.order = order or ('ls', 'annotate', 'code')
63 headers = options.pop('headers', None)
63 headers = options.pop('headers', None)
64 if headers and not ('ls' in headers and 'annotate' in headers and
64 if headers and not ('ls' in headers and 'annotate' in headers and
65 'code' in headers):
65 'code' in headers
66 ):
66 raise ValueError("If headers option dict is specified it must "
67 raise ValueError("If headers option dict is specified it must "
67 "all 'ls', 'annotate' and 'code' keys")
68 "all 'ls', 'annotate' and 'code' keys")
68 self.headers = headers
69 self.headers = headers
General Comments 0
You need to be logged in to leave comments. Login now