chrome/tools/history-viz.py
def Run(self, sql):
    """Execute |sql|, yielding each row of results as an array."""
    subproc = subprocess.Popen(['sqlite', self.file],
                               stdin=subprocess.PIPE,
                               stdout=subprocess.PIPE)
    subproc.stdin.write('.mode tabs\n')
    subproc.stdin.write(sql + ';')
    subproc.stdin.close()
    for line in subproc.stdout:
      row = line.strip().split('\t')
      yield row
Execute |sql|, yielding each row of results as an array.
Execute |sql|, yielding each row of results as an array.
Execute |sql| yielding each row of results as an array .
def Run(self, sql):
    subproc = subprocess.Popen(['sqlite', self.file],
                               stdin=subprocess.PIPE,
                               stdout=subprocess.PIPE)
    subproc.stdin.write('.mode tabs\n')
    subproc.stdin.write(sql + ';')
    subproc.stdin.close()
    for line in subproc.stdout:
      row = line.strip().split('\t')
      yield row
def Run ( self , sql ) : subproc = subprocess . Popen ( [ 'sqlite' , self . file ] , stdin = subprocess . PIPE , stdout = subprocess . PIPE ) subproc . stdin . write ( '.mode tabs\n' ) subproc . stdin . write ( sql + ';' ) subproc . stdin . close ( ) for line in subproc . stdout : row = line . strip ( ) . split ( '\t' ) yield row
Execute |sql|, yielding each row of results as an array.
Execute |sql| yielding each row of results as an array .
"""Execute |sql|, yielding each row of results as an array."""
self
sql