Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisspyB committed Nov 18, 2024
1 parent 69c5d9a commit 48af9a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pyfdb/pyfdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,10 @@ def size(self):
lib.fdb_datareader_size(self.__dataread, size)
return size[0]


def read(self, size=-1) -> bytes:
self.open()
if isinstance(size, int):
if (size == -1 ):
if size == -1:
size = self.size()
buf = bytearray(size)
read = ffi.new("long*")
Expand Down

0 comments on commit 48af9a8

Please sign in to comment.