Skip to content

Commit

Permalink
Merge pull request iovisor#2282 from lilydjwg/master
Browse files Browse the repository at this point in the history
fix string re being used on bytes for Python 3
  • Loading branch information
palmtenor committed Mar 21, 2019
2 parents c6cded4 + df481a4 commit 92f824c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/bcc/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ def _get_event_class(self):
num_fields = lib.bpf_perf_event_fields(self.bpf.module, self._name)
i = 0
while i < num_fields:
field = lib.bpf_perf_event_field(self.bpf.module, self._name, i)
field = lib.bpf_perf_event_field(self.bpf.module, self._name, i).decode()
m = re.match(r"(.*)#(.*)", field)
field_name = m.group(1)
field_type = m.group(2)
Expand Down

0 comments on commit 92f824c

Please sign in to comment.