#NEWLINE# def cmd( self , * args , **kwargs ) : #NEWLINE# #INDENT# 'adb command, add -s serial by default. return the subprocess.Popen object.' #NEWLINE# serial = self . device_serial ( ) #NEWLINE# if serial : #NEWLINE# #INDENT# if ( ' ' in serial ) : #NEWLINE# #INDENT# serial = ( "'%s'" % self ) #NEWLINE# #UNINDENT# return self . raw_cmd ( * ( [ '-s' , serial ] + list ( args ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . raw_cmd ( * args )