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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/python.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/checkers/python.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/python.py b/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/python.py
index f09638ca6a2ea76b15a3927d615bd053d64754e2..13f66d948a951a4142dd63259485618ded000ed2 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/python.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/python.py
@@ -36,6 +36,7 @@ from webkitpy.thirdparty import pep8
class PythonChecker(object):
"""Processes text lines for checking style."""
+
def __init__(self, file_path, handle_style_error):
self._file_path = file_path
self._handle_style_error = handle_style_error
@@ -76,10 +77,10 @@ class PythonChecker(object):
executive = Executive()
env = os.environ.copy()
env['PYTHONPATH'] = ('%s%s%s%s%s' % (wkf.path_from_webkit_base('Tools', 'Scripts'),
- os.pathsep,
- wkf.path_from_webkit_base('Source', 'build', 'scripts'),
- os.pathsep,
- wkf.path_from_webkit_base('Tools', 'Scripts', 'webkitpy', 'thirdparty')))
+ os.pathsep,
+ wkf.path_from_webkit_base('Source', 'build', 'scripts'),
+ os.pathsep,
+ wkf.path_from_webkit_base('Tools', 'Scripts', 'webkitpy', 'thirdparty')))
return executive.run_command([sys.executable, wkf.path_from_depot_tools_base('pylint.py'),
'--output-format=parseable',
'--errors-only',

Powered by Google App Engine
This is Rietveld 408576698