except Exception:
raise
- utils._check_type(msg, bt2_message._Message)
+ utils._check_type(msg, bt2_message._MessageConst)
# The reference we return will be given to the message array.
# However, the `msg` Python object may stay alive, if the user has kept
#
# - If the iterator has a _user_can_seek_beginning attribute,
# read it and use that result.
- # - Otherwise, the presence or absence of a `_seek_beginning`
+ # - Otherwise, the presence or absence of a `_user_seek_beginning`
# method indicates whether the iterator can seek beginning.
if hasattr(self, '_user_can_seek_beginning'):
can_seek_beginning = self._user_can_seek_beginning