parameters: (self, n=-1)
return_statement: return result
docstring: Read with at most one underlying system call.  If at least one
          byte is buffered, return that instead.
docstring_summary: Read with at most one underlying system call.  If at least one
          byte is buffered, return that instead.
docstring_tokens: Read with at most one underlying system call . If at least one byte is buffered return that instead .
function: def read1(self, n=-1):
          """Read with at most one underlying system call.  If at least one
          byte is buffered, return that instead.
          """
          if self.fp is None or self._method == "HEAD":
              return b""
          if self.chunked:
              return self._read1_chunked(n)
          if self.length is not None and (n < 0 or n > self.length):
              n = self.length
          result = self.fp.read1(n)
          if not result and n:
              self._close_conn()
          elif self.length is not None:
              self.length -= len(result)
          return result
function_tokens: def read1 ( self , n = - 1 ) : if self . fp is None or self . _method == "HEAD" : return b"" if self . chunked : return self . _read1_chunked ( n ) if self . length is not None and ( n < 0 or n > self . length ) : n = self . length result = self . fp . read1 ( n ) if not result and n : self . _close_conn ( ) elif self . length is not None : self . length -= len ( result ) return result