Mercurial > hg
comparison mercurial/httpclient/__init__.py @ 17536:dc6364a81e42
spelling: requested
author | timeless@mozdev.org |
---|---|
date | Fri, 17 Aug 2012 13:58:19 -0700 |
parents | 69af967b6d6f |
children | 31f32a96e1e3 |
comparison
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() |