(self, host, port, user, pwd)
Ensure that line for streaming replication exists in .pgpass
Ensure that line for streaming replication exists in .pgpass
Ensure that line for streaming replication exists in . pgpass
def ensure_user(self, host, port, user, pwd):
        """Ensure that line for streaming replication exists in .pgpass"""
        self.remove_user(host, port, user)
        self.contents.insert(0, '%s:%s:%s:%s:%s\n' % (host, port, 'replication', user, pwd))
def ensure_user ( self , host , port , user , pwd ) : self . remove_user ( host , port , user ) self . contents . insert ( 0 , '%s:%s:%s:%s:%s\n' % ( host , port , 'replication' , user , pwd ) )