@@ -760,15 +760,15 @@ def _ensure_open_stream(self):
760760 def detach (self ):
761761 raise UnsupportedOperation ("Detaching from the buffer is not supported" )
762762
763- def read (self , __size = - 1 , / ):
763+ def read (self , __size = - 1 ):
764764 # Read and return up to size bytes. If omitted, None, or Negative, data is read until EOF is reached
765765 # Empty bytes object returned if stream is EOF
766766 self ._ensure_open_stream ()
767767 out = self ._underlying_stream .read (__size )
768768 self ._current_pos_of_underlying_stream += len (out )
769769 return out
770770
771- def read1 (self , __size = ... ):
771+ def read1 (self , __size = - 1 ):
772772 # Read and return up to size bytes, with at most one read() system call
773773 self ._ensure_open_stream ()
774774 out = self ._underlying_stream .read1 (__size )
@@ -829,7 +829,7 @@ def readlines(self, __hint = -1):
829829 self ._current_pos_of_underlying_stream += len (out )
830830 return out
831831
832- def seek (self , __offset , __whence = os .SEEK_SET , / ):
832+ def seek (self , __offset , __whence = os .SEEK_SET ):
833833 """
834834 Change the stream position to the given byte offset, which may necessitate closing the existing client connection and opening a new one.
835835
0 commit comments