ftp2http/ftp2http.py
def close(self):
        """
        Extend the class to close the file earlier than usual, making the HTTP
        upload occur before a response is sent to the FTP client. In the event
        of an unsuccessful HTTP upload, relay the HTTP error message to the
        FTP client by overriding the response.

        """

        if self.receive and self.transfer_finished and not self._closed:
            if self.file_obj is not None and not self.file_obj.closed:
                try:
                    self.file_obj.close()
                except UnexpectedHTTPResponse as error:
                    self._resp = ('550 Error transferring to HTTP - %s' % error, logger.error)

        return super(PostDTPHandlerMixin, self).close()

        Extend the class to close the file earlier than usual, making the HTTP
        upload occur before a response is sent to the FTP client. In the event
        of an unsuccessful HTTP upload, relay the HTTP error message to the
        FTP client by overriding the response.

        
Extend the class to close the file earlier than usual, making the HTTP
upload occur before a response is sent to the FTP client. In the event
of an unsuccessful HTTP upload, relay the HTTP error message to the
FTP client by overriding the response.
Extend the class to close the file earlier than usual making the HTTP upload occur before a response is sent to the FTP client . In the event of an unsuccessful HTTP upload relay the HTTP error message to the FTP client by overriding the response .
def close(self):
        if self.receive and self.transfer_finished and not self._closed:
            if self.file_obj is not None and not self.file_obj.closed:
                try:
                    self.file_obj.close()
                except UnexpectedHTTPResponse as error:
                    self._resp = ('550 Error transferring to HTTP - %s' % error, logger.error)
        return super(PostDTPHandlerMixin, self).close()
def close ( self ) : if self . receive and self . transfer_finished and not self . _closed : if self . file_obj is not None and not self . file_obj . closed : try : self . file_obj . close ( ) except UnexpectedHTTPResponse as error : self . _resp = ( '550 Error transferring to HTTP - %s' % error , logger . error ) return super ( PostDTPHandlerMixin , self ) . close ( )
Extend the class to close the file earlier than usual, making the HTTP
upload occur before a response is sent to the FTP client.
Extend the class to close the file earlier than usual making the HTTP upload occur before a response is sent to the FTP client .
"""
        Extend the class to close the file earlier than usual, making the HTTP
        upload occur before a response is sent to the FTP client. In the event
        of an unsuccessful HTTP upload, relay the HTTP error message to the
        FTP client by overriding the response.

        """
self