Show More
@@ -90,7 +90,8 b' class AnnotateHtmlFormatter(HtmlFormatte' | |||
|
90 | 90 | self.order = order or ('ls', 'annotate', 'code') |
|
91 | 91 | headers = options.pop('headers', None) |
|
92 | 92 | if headers and not ('ls' in headers and 'annotate' in headers and |
|
93 |
'code' in headers |
|
|
93 | 'code' in headers | |
|
94 | ): | |
|
94 | 95 | raise ValueError("If headers option dict is specified it must " |
|
95 | 96 | "all 'ls', 'annotate' and 'code' keys") |
|
96 | 97 | self.headers = headers |
@@ -126,7 +126,8 b' class Page(_Page):' | |||
|
126 | 126 | symbol_previous='<', symbol_next='>', |
|
127 | 127 | link_attr=None, |
|
128 | 128 | curpage_attr=None, |
|
129 |
dotdot_attr=None, **kwargs |
|
|
129 | dotdot_attr=None, **kwargs | |
|
130 | ): | |
|
130 | 131 | self.curpage_attr = curpage_attr or {'class': 'active'} |
|
131 | 132 | self.separator = separator |
|
132 | 133 | self.pager_kwargs = kwargs |
@@ -304,7 +304,8 b' def age(prevdate, show_short_version=Fal' | |||
|
304 | 304 | month_lengths = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] |
|
305 | 305 | if deltas['day'] < 0: |
|
306 | 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 | 309 | deltas['day'] += 29 |
|
309 | 310 | else: |
|
310 | 311 | deltas['day'] += month_lengths[prevdate.month - 1] |
@@ -95,7 +95,8 b' class GitInMemoryChangeset(BaseInMemoryC' | |||
|
95 | 95 | new_trees.append(parent) |
|
96 | 96 | # Update ancestors |
|
97 | 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 | 100 | parent[path] = stat.S_IFDIR, tree.id |
|
100 | 101 | object_store.add_object(tree) |
|
101 | 102 |
@@ -62,7 +62,8 b' class AnnotateHtmlFormatter(HtmlFormatte' | |||
|
62 | 62 | self.order = order or ('ls', 'annotate', 'code') |
|
63 | 63 | headers = options.pop('headers', None) |
|
64 | 64 | if headers and not ('ls' in headers and 'annotate' in headers and |
|
65 |
'code' in headers |
|
|
65 | 'code' in headers | |
|
66 | ): | |
|
66 | 67 | raise ValueError("If headers option dict is specified it must " |
|
67 | 68 | "all 'ls', 'annotate' and 'code' keys") |
|
68 | 69 | self.headers = headers |
General Comments 0
You need to be logged in to leave comments.
Login now