(self, host, port, user)
return found
Remove all matching lines from .pgpass
Remove all matching lines from .pgpass
Remove all matching lines from . pgpass
def remove_user(self, host, port, user):
        """Remove all matching lines from .pgpass"""

        new_contents = []
        found = False
        for l in self.contents:
            p = self.split_pgpass_line(l)
            if p and p['host'] == host and p['port'] == port and p['user'] == user and p['db'] == 'replication':
                    found = True
                    continue

            new_contents.append(l)

        self.contents = new_contents
        return found
def remove_user ( self , host , port , user ) : new_contents = [ ] found = False for l in self . contents : p = self . split_pgpass_line ( l ) if p and p [ 'host' ] == host and p [ 'port' ] == port and p [ 'user' ] == user and p [ 'db' ] == 'replication' : found = True continue new_contents . append ( l ) self . contents = new_contents return found