Skip to content

Commit

Permalink
set pretty to true; important since it should be the default
Browse files Browse the repository at this point in the history
  • Loading branch information
Teque5 committed Jun 17, 2021
1 parent 39a002e commit aa5ea20
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sigmf/sigmffile.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def dump(self, filep, pretty=True):
Parameters
----------
filep : object
File pointer or something that json.dump() can handle
File pointer or something that json.dump() can handle.
pretty : bool, optional
Is true by default.
'''
Expand All @@ -341,8 +341,6 @@ def dumps(self, pretty=True):
Parameters
----------
filep : object
File pointer or something that json.dump() can handle
pretty : bool, optional
Is true by default.
Expand All @@ -366,7 +364,7 @@ def archive(self, name=None, fileobj=None):
archive = SigMFArchive(self, name, fileobj)
return archive.path

def tofile(self, file_path, pretty=False, toarchive=False):
def tofile(self, file_path, pretty=True, toarchive=False):
"""
Dump contents to file.
"""
Expand Down

0 comments on commit aa5ea20

Please sign in to comment.