parameters: (self)
docstring: Close I/O established in "open".
docstring_summary: Close I/O established in "open".
docstring_tokens: Close I / O established in open .
function: def shutdown(self):
          """Close I/O established in "open"."""
          self.file.close()
          try:
              self.sock.shutdown(socket.SHUT_RDWR)
          except socket.error as e:
              # The server might already have closed the connection
              if e.errno != errno.ENOTCONN:
                  raise
          finally:
              self.sock.close()
function_tokens: def shutdown ( self ) : self . file . close ( ) try : self . sock . shutdown ( socket . SHUT_RDWR ) except socket . error as e : # The server might already have closed the connection if e . errno != errno . ENOTCONN : raise finally : self . sock . close ( )