def get_db_conn():
 conn = psycopg2.connect(("dbname='%s' user='%s' port='%s' host='%s' password='%s'" % (db_name, db_user, db_port, db_host, db_passwd)))
 return conn

def get_db_conn ( ) : conn = psycopg2 . connect ( ( "dbname='%s' user='%s' port='%s' host='%s' password='%s'" % ( db_name , db_user , db_port , db_host , db_passwd ) ) ) return conn
get db conn .