Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 2a1f3d0

Browse files
committed
fix: flake8 E275 missing whitespace after keyword
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
1 parent fa3ab4c commit 2a1f3d0

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

lttnganalyses/cli/period_parsing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def _res_to_scope(res):
144144
elif 'id' in res:
145145
scope = period.EventFieldName(res['id'])
146146
else:
147-
assert(False)
147+
assert False
148148

149149
if 'dyn-scope-prefix' in res:
150150
dyn_scope = period.DynScope(res['dyn-scope-prefix'][0][0])
@@ -231,7 +231,7 @@ def _expr_results_to_expression(res_expr):
231231
return _create_binary_op(res_expr['relop'], lh_field_expr,
232232
rh_field_expr)
233233

234-
assert(False)
234+
assert False
235235

236236

237237
def _capture_refs_results_to_captures_exprs(res_capture_refs):

lttnganalyses/cli/periods.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ def _hierarchical_sub(self, tmp_hierarchical_list, event, per_period_stats,
856856
per_parent_period_group_by_stats, active_periods,
857857
ancestors_captures + event_captures,
858858
per_group_active_periods, per_period_group_by_stats)
859-
del(active_periods[child])
859+
del active_periods[child]
860860
for c in child_captures:
861861
local_captures.append(event_captures + c)
862862
global_captures.append(event_captures.copy() + c)
@@ -923,7 +923,7 @@ def _get_aggregated_lists(self):
923923
tmp_hierarchical_list, period_event, per_period_stats,
924924
per_parent_period_group_by_stats, active_periods, [],
925925
per_group_active_periods, per_period_group_by_stats)
926-
del(active_periods[period_event])
926+
del active_periods[period_event]
927927
for item in tmp_hierarchical_list:
928928
hierarchical_list.append(item)
929929

lttnganalyses/core/analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def _remove_defless_period(self, completed, evt):
130130
period.end_evt = evt
131131
period.completed = completed
132132
self._on_period_end(period)
133-
assert(len(self._period_data) == 0)
133+
assert len(self._period_data) == 0
134134

135135
# Creates a fresh specific period data object. This must be
136136
# implemented by a specific analysis.

lttnganalyses/core/period.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def _resolve_event_expr(event, expr):
451451

452452
return event.field_with_scope(expr.name, bt_ctf_scope)
453453

454-
assert(False)
454+
assert False
455455

456456

457457
# This exquisite function takes an expression and resolves it to
@@ -480,7 +480,7 @@ def _resolve_expr(expr, match_context):
480480
if type(expr) is String:
481481
return expr.value
482482

483-
assert(False)
483+
assert False
484484

485485

486486
class _Matcher:

0 commit comments

Comments
 (0)