(self)
Close the iterable (if needed) and reset all instance vars

        Subclasses may want to also drop the client connection.
Close the iterable (if needed) and reset all instance vars
Close the iterable ( if needed ) and reset all instance vars
def close(self):
        """Close the iterable (if needed) and reset all instance vars

        Subclasses may want to also drop the client connection.
        """
        try:
            if hasattr(self.result,'close'):
                self.result.close()
        finally:
            self.result = self.headers = self.status = self.environ = None
            self.bytes_sent = 0; self.headers_sent = False
def close ( self ) : try : if hasattr ( self . result , 'close' ) : self . result . close ( ) finally : self . result = self . headers = self . status = self . environ = None self . bytes_sent = 0 self . headers_sent = False