mercurial/httpclient/__init__.py
changeset 17536 dc6364a81e42
parent 16774 69af967b6d6f
child 17537 31f32a96e1e3
equal deleted inserted replaced
17535:63e302be813f 17536:dc6364a81e42
   412 
   412 
   413     def close(self):
   413     def close(self):
   414         """Close the connection to the server.
   414         """Close the connection to the server.
   415 
   415 
   416         This is a no-op if the connection is already closed. The
   416         This is a no-op if the connection is already closed. The
   417         connection may automatically close if requessted by the server
   417         connection may automatically close if requested by the server
   418         or required by the nature of a response.
   418         or required by the nature of a response.
   419         """
   419         """
   420         if self.sock is None:
   420         if self.sock is None:
   421             return
   421             return
   422         self.sock.close()
   422         self.sock.close()