Skip to content

Commit

Permalink
Tidy up to fix PEP8 check
Browse files Browse the repository at this point in the history
  • Loading branch information
adamreeve committed Sep 22, 2016
1 parent c3bfe78 commit bec3efc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nptdms/tdms.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,11 @@

def fromfile(file, dtype, count, *args, **kwargs):
""" Wrapper around np.fromfile to support BytesIO fake files."""

if isinstance(file, BytesIO):
return np.fromstring(file.read(count * dtype.itemsize), dtype=dtype, count=count, *args, **kwargs)
return np.fromstring(
file.read(count * dtype.itemsize),
dtype=dtype, count=count, *args, **kwargs)
else:
return np.fromfile(file, dtype=dtype, count=count, *args, **kwargs)

Expand Down

0 comments on commit bec3efc

Please sign in to comment.