Skip to content

Commit

Permalink
data_bag argument handled properly
Browse files Browse the repository at this point in the history
  • Loading branch information
polyvertex committed Jul 20, 2018
1 parent 59fd010 commit 3d91501
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ UNRELEASED

* Added `fitdecode.utils.get_mesg_field`
* Added `fitdecode.utils.get_mesg_field_num`
* Minor improvements
* Minor improvements and corrections


v0.2.0 (2018-07-16)
Expand Down
4 changes: 2 additions & 2 deletions fitdecode/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ class FitReader:

def __init__(self, fileish, *,
processor=_UNSET, check_crc=True, keep_raw_chunks=False,
data_bag=None):
data_bag=_UNSET):
# modifiable options (public)
self.check_crc = check_crc

# state (public)
#: the *data_bag* object that was passed to the constructor, or, by
#: default, a `dict` object
self.data_bag = data_bag or {}
self.data_bag = {} if data_bag is _UNSET else data_bag

# immutable options (private)
self._processor = (
Expand Down

0 comments on commit 3d91501

Please sign in to comment.