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

Unified Diff: tools/auto_bisect/bisect_utils.py

Issue 1001033004: Fix style in tools/auto_bisect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: tools/auto_bisect/bisect_utils.py
diff --git a/tools/auto_bisect/bisect_utils.py b/tools/auto_bisect/bisect_utils.py
index 8d7dbd5357f0259eb107382d3a170fa2fb17744e..f9f0668ec222142dc296f4db53b60cb25c2776c5 100644
--- a/tools/auto_bisect/bisect_utils.py
+++ b/tools/auto_bisect/bisect_utils.py
@@ -318,7 +318,6 @@ def RunGClientAndCreateConfig(opts, custom_deps=None, cwd=None):
return return_code
-
def OnAccessError(func, path, _):
"""Error handler for shutil.rmtree.
@@ -424,7 +423,7 @@ def CheckRunGit(command, cwd=None):
Returns:
A tuple of the output and return code.
"""
- (output, return_code) = RunGit(command, cwd=cwd)
+ output, return_code = RunGit(command, cwd=cwd)
assert not return_code, 'An error occurred while running'\
' "git %s"' % ' '.join(command)
@@ -456,8 +455,7 @@ def CreateBisectDirectoryAndSetupDepot(opts, custom_deps):
if CheckIfBisectDepotExists(opts):
path_to_dir = os.path.join(os.path.abspath(opts.working_directory),
BISECT_DIR, 'src')
- (output, _) = RunGit(['rev-parse', '--is-inside-work-tree'],
- cwd=path_to_dir)
+ output, _ = RunGit(['rev-parse', '--is-inside-work-tree'], cwd=path_to_dir)
if output.strip() == 'true':
# Before checking out master, cleanup up any leftover index.lock files.
_CleanupPreviousGitRuns(path_to_dir)
@@ -508,9 +506,10 @@ def RunProcessAndRetrieveOutput(command, cwd=None):
# On Windows, use shell=True to get PATH interpretation.
shell = IsWindowsHost()
- proc = subprocess.Popen(command, shell=shell, stdout=subprocess.PIPE,
+ proc = subprocess.Popen(
+ command, shell=shell, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
- (output, _) = proc.communicate()
+ output, _ = proc.communicate()
if cwd:
os.chdir(original_cwd)

Powered by Google App Engine
This is Rietveld 408576698