Skip to content

Commit a6aa7a5

Browse files
authored
Minor python3 lint fixes (#33009)
1 parent 3437ec9 commit a6aa7a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: utils/gyb.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def split_lines(s):
5151
If the lines are later concatenated, the result is s, possibly
5252
with a single appended newline.
5353
"""
54-
return [l + '\n' for l in s.split('\n')]
54+
return [line + '\n' for line in s.split('\n')]
5555

5656

5757
# text on a line up to the first '$$', '${', or '%%'
@@ -748,7 +748,7 @@ def __str__(self, indent=''):
748748
s = indent + 'Code: {' + source_lines[0] + '}'
749749
else:
750750
s = indent + 'Code:\n' + indent + '{\n' + '\n'.join(
751-
indent + 4 * ' ' + l for l in source_lines
751+
indent + 4 * ' ' + line for line in source_lines
752752
) + '\n' + indent + '}'
753753
return s + self.format_children(indent)
754754

0 commit comments

Comments
 (0)