Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/bindings/print_idl_diff.py

Issue 2256793002: Make docstrings more consistent using format-webkitpy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make fix_docstrings match function stricter and fix style/main.py. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Tools/Scripts/webkitpy/bindings/print_idl_diff.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/bindings/print_idl_diff.py b/third_party/WebKit/Tools/Scripts/webkitpy/bindings/print_idl_diff.py
index 4330197859e8dd128c2d5e9383a357b12ebffd92..9bb01dcc0202b2a0a923288481964ef0a5e51d21 100755
--- a/third_party/WebKit/Tools/Scripts/webkitpy/bindings/print_idl_diff.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/bindings/print_idl_diff.py
@@ -115,28 +115,25 @@ class Colorize(object):
self.out = out
def reset_color(self):
- """Reset text's color to default.
- """
+ """Reset text's color to default."""
self.out.write('\033[0m')
def change_color(self, color):
"""Change text's color by specifing arguments.
Args:
color: A new color to change. It should be one of |COLORS|.
- """
+ """
if color in self.COLORS:
self.out.write('\033[' + str(color) + 'm')
else:
raise Exception('Unsupported color.')
def writeln(self, string):
- """Print text with a line-break.
- """
+ """Print text with a line-break."""
self.out.write(string + '\n')
def write(self, string):
- """Print text without a line-break.
- """
+ """Print text without a line-break."""
self.out.write(string)

Powered by Google App Engine
This is Rietveld 408576698