(selg, pgline)
Parses pgpass line, returns dict
Parses pgpass line, returns dict
Parses pgpass line returns dict
def split_pgpass_line(selg, pgline):
        """Parses pgpass line, returns dict"""
        try:
            (host, port, db, user, pwd) = pgline.rstrip('\n\r').split(":")
            return {'host': host, 'port': port, 'db': db, 'user': user, 'pwd': pwd}
        except ValueError:
            return None
def split_pgpass_line ( selg , pgline ) : try : ( host , port , db , user , pwd ) = pgline . rstrip ( '\n\r' ) . split ( ":" ) return { 'host' : host , 'port' : port , 'db' : db , 'user' : user , 'pwd' : pwd } except ValueError : return None