def commit(self):
        '''
        This just calls the connection's commit method.

        '''
        if not self.connection.closed:
            self.connection.commit()
        else:
            raise AttributeError('postgres connection to %s is closed' %
                                 self.database)
def commit(self):
        '''
        This just calls the connection's commit method.

        '''
        if not self.connection.closed:
            self.connection.commit()
        else:
            raise AttributeError('postgres connection to %s is closed' %
                                 self.database)
def commit ( self ) : if not self . connection . closed : self . connection . commit ( ) else : raise AttributeError ( 'postgres connection to %s is closed' % self . database )
This just calls the connection's commit method.
This just calls the connection s commit method .