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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/style/optparser.py

Issue 1839193004: Run auto-formatter (autopep8) on webkitpy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 9 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/style/optparser.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/style/optparser.py b/third_party/WebKit/Tools/Scripts/webkitpy/style/optparser.py
index 4b638c05556a2986bd221b578e5c2914becc169b..f5b15d3027e646d9c46375d5d050e0f4083e3e12 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/style/optparser.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/style/optparser.py
@@ -142,6 +142,7 @@ class CommandOptionValues(object):
and "vs7" which Microsoft Visual Studio 7 can parse.
"""
+
def __init__(self,
filter_rules=None,
git_commit=None,
@@ -198,7 +199,7 @@ class ArgumentPrinter(object):
"""Supports the printing of check-webkit-style command arguments."""
def _flag_pair_to_string(self, flag_key, flag_value):
- return '--%(key)s=%(val)s' % {'key': flag_key, 'val': flag_value }
+ return '--%(key)s=%(val)s' % {'key': flag_key, 'val': flag_value}
def to_flag_string(self, options):
"""Return a flag string of the given CommandOptionValues instance.
@@ -288,9 +289,9 @@ class ArgumentParser(object):
self.stderr_write = stderr.write
self._parser = self._create_option_parser(stderr=stderr,
- usage=usage,
- default_min_confidence=self.default_options.min_confidence,
- default_output_format=self.default_options.output_format)
+ usage=usage,
+ default_min_confidence=self.default_options.min_confidence,
+ default_output_format=self.default_options.output_format)
def _create_option_parser(self, stderr, usage,
default_min_confidence, default_output_format):
@@ -454,4 +455,3 @@ class ArgumentParser(object):
output_format=output_format)
return (paths, options)
-

Powered by Google App Engine
This is Rietveld 408576698