@@ -31,7 +31,7 @@ def read(self, count):
3131 """
3232 return self ._stream .read (count )
3333
34- def read_byte (self , base = None , offset = 0 ):
34+ def read_byte (self , base , offset = 0 ):
3535 """
3636 Return the int value of the byte at the file position defined by
3737 self._base_offset + *base* + *offset*. If *base* is None, the byte is
@@ -40,7 +40,7 @@ def read_byte(self, base=None, offset=0):
4040 fmt = 'B'
4141 return self ._read_int (fmt , base , offset )
4242
43- def read_long (self , base = None , offset = 0 ):
43+ def read_long (self , base , offset = 0 ):
4444 """
4545 Return the int value of the four bytes at the file position defined by
4646 self._base_offset + *base* + *offset*. If *base* is None, the long is
@@ -50,7 +50,7 @@ def read_long(self, base=None, offset=0):
5050 fmt = '<L' if self ._byte_order is LITTLE_ENDIAN else '>L'
5151 return self ._read_int (fmt , base , offset )
5252
53- def read_short (self , base = None , offset = 0 ):
53+ def read_short (self , base , offset = 0 ):
5454 """
5555 Return the int value of the two bytes at the file position determined
5656 by *base* and *offset*, similarly to ``read_long()`` above.
@@ -90,8 +90,6 @@ def _read_bytes(self, byte_count, base, offset):
9090
9191 def _read_int (self , fmt , base , offset ):
9292 struct = Struct (fmt )
93- if base is None :
94- base = self ._stream .tell () - self ._base_offset
9593 return self ._unpack_item (struct , base , offset )
9694
9795 def _unpack_item (self , struct , base , offset ):
0 commit comments