Skip to content

Commit

Permalink
perf scripts python: exported-sql-viewer.py: Remove redundant semi-co…
Browse files Browse the repository at this point in the history
…lons

Remove redundant semi-colons added inadvertently.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/20190710085810.1650-16-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
  • Loading branch information
Adrian Hunter authored and Arnaldo Carvalho de Melo committed Jul 10, 2019
1 parent d9efc1d commit 2668872
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tools/perf/scripts/python/exported-sql-viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def __init__(self, parent, finder, is_reg_expr=False):
self.hbox.addWidget(self.close_button)

self.bar = QWidget()
self.bar.setLayout(self.hbox);
self.bar.setLayout(self.hbox)
self.bar.hide()

def Widget(self):
Expand Down Expand Up @@ -470,7 +470,7 @@ def __init__(self, glb, params, row, parent_item):
self.params = params
self.row = row
self.parent_item = parent_item
self.query_done = False;
self.query_done = False
self.child_count = 0
self.child_items = []
if parent_item:
Expand Down Expand Up @@ -517,7 +517,7 @@ def __init__(self, glb, params, row, comm_id, thread_id, call_path_id, time, ins
self.time = time

def Select(self):
self.query_done = True;
self.query_done = True
query = QSqlQuery(self.glb.db)
if self.params.have_ipc:
ipc_str = ", SUM(insn_count), SUM(cyc_count)"
Expand Down Expand Up @@ -604,7 +604,7 @@ def __init__(self, glb, params, row, comm_id, comm, parent_item):
self.dbid = comm_id

def Select(self):
self.query_done = True;
self.query_done = True
query = QSqlQuery(self.glb.db)
QueryExec(query, "SELECT thread_id, pid, tid"
" FROM comm_threads"
Expand All @@ -622,7 +622,7 @@ class CallGraphRootItem(CallGraphLevelItemBase):
def __init__(self, glb, params):
super(CallGraphRootItem, self).__init__(glb, params, 0, None)
self.dbid = 0
self.query_done = True;
self.query_done = True
query = QSqlQuery(glb.db)
QueryExec(query, "SELECT id, comm FROM comms")
while query.next():
Expand Down Expand Up @@ -793,7 +793,7 @@ def __init__(self, glb, params, row, comm_id, thread_id, calls_id, time, insn_cn
self.time = time

def Select(self):
self.query_done = True;
self.query_done = True
if self.calls_id == 0:
comm_thread = " AND comm_id = " + str(self.comm_id) + " AND thread_id = " + str(self.thread_id)
else:
Expand Down Expand Up @@ -881,7 +881,7 @@ def __init__(self, glb, params, row, comm_id, comm, parent_item):
self.dbid = comm_id

def Select(self):
self.query_done = True;
self.query_done = True
query = QSqlQuery(self.glb.db)
QueryExec(query, "SELECT thread_id, pid, tid"
" FROM comm_threads"
Expand All @@ -899,7 +899,7 @@ class CallTreeRootItem(CallGraphLevelItemBase):
def __init__(self, glb, params):
super(CallTreeRootItem, self).__init__(glb, params, 0, None)
self.dbid = 0
self.query_done = True;
self.query_done = True
query = QSqlQuery(glb.db)
QueryExec(query, "SELECT id, comm FROM comms")
while query.next():
Expand Down Expand Up @@ -971,7 +971,7 @@ class VBox():

def __init__(self, w1, w2, w3=None):
self.vbox = QWidget()
self.vbox.setLayout(QVBoxLayout());
self.vbox.setLayout(QVBoxLayout())

self.vbox.layout().setContentsMargins(0, 0, 0, 0)

Expand Down Expand Up @@ -1391,7 +1391,7 @@ def __init__(self, model, parent):
self.hbox.addWidget(self.close_button)

self.bar = QWidget()
self.bar.setLayout(self.hbox);
self.bar.setLayout(self.hbox)
self.bar.show()

self.in_progress = False
Expand Down Expand Up @@ -2206,7 +2206,7 @@ def __init__(self, glb, title, items, partial, parent=None):
self.vbox.addLayout(self.grid)
self.vbox.addLayout(self.hbox)

self.setLayout(self.vbox);
self.setLayout(self.vbox)

def Ok(self):
vars = self.report_vars
Expand Down Expand Up @@ -3139,7 +3139,7 @@ def __init__(self, glb, parent=None):
self.vbox = QVBoxLayout()
self.vbox.addWidget(self.text)

self.setLayout(self.vbox);
self.setLayout(self.vbox)

# Font resize

Expand Down

0 comments on commit 2668872

Please sign in to comment.