Correct to pep8 style with yapf linter.
Bug=28751508
Change-Id: Ic7435726030b6d9a40ba5e4dc37302f34d86e67d
diff --git a/utils/python/controllers/fastboot.py b/utils/python/controllers/fastboot.py
index 096dfae..b06e3f3 100644
--- a/utils/python/controllers/fastboot.py
+++ b/utils/python/controllers/fastboot.py
@@ -16,6 +16,7 @@
from subprocess import Popen, PIPE
+
def exe_cmd(*cmds):
"""Executes commands in a new shell. Directing stderr to PIPE.
@@ -38,9 +39,11 @@
return out
return err
+
class FastbootError(Exception):
"""Raised when there is an error in fastboot operations."""
+
class FastbootProxy():
"""Proxy class for fastboot.
@@ -49,6 +52,7 @@
>> fb = FastbootProxy(<serial>)
>> fb.devices() # will return the console output of "fastboot devices".
"""
+
def __init__(self, serial=""):
self.serial = serial
if serial:
@@ -60,11 +64,12 @@
return exe_cmd(' '.join((self.fastboot_str, name, arg_str)))
def args(self, *args):
- return exe_cmd(' '.join((self.fastboot_str,) + args))
+ return exe_cmd(' '.join((self.fastboot_str, ) + args))
def __getattr__(self, name):
def fastboot_call(*args):
clean_name = name.replace('_', '-')
arg_str = ' '.join(str(elem) for elem in args)
return self._exec_fastboot_cmd(clean_name, arg_str)
+
return fastboot_call