mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 21:30:12 +01:00
Put python object definition and assignment on same line (#3057)
Where there was an object initialization immediately followed by assignment I condensed it to one line, which seems to be the convention looking at other files. I also deleted the repetition of 'of' in some c++ comments because it was grammatically incorrect. --------- Co-authored-by: Clayton Gearhart <claytongearhart240@gmail.com>
This commit is contained in:
co-authored by
Clayton Gearhart
parent
da35a9806a
commit
3628e22ca2
@@ -239,15 +239,14 @@ class _Thread:
|
||||
|
||||
def format(self, long: bool) -> str:
|
||||
"""Formats the review thread with comments."""
|
||||
lines = []
|
||||
lines.append(
|
||||
lines = [
|
||||
"%s\n - line %d; %s"
|
||||
% (
|
||||
self.url,
|
||||
self.line,
|
||||
("resolved" if self.is_resolved else "unresolved"),
|
||||
)
|
||||
)
|
||||
]
|
||||
if self.diff_url:
|
||||
lines.append(" - diff: %s" % self.diff_url)
|
||||
for comment in self.comments:
|
||||
|
||||
Reference in New Issue
Block a user