equal
deleted
inserted
replaced
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() |