def lang_altertrust(cursor, lang, trust):
 query = 'UPDATE pg_language SET lanpltrusted = %s WHERE lanname=%s'
 cursor.execute(query, (trust, lang))
 return True

def lang_altertrust ( cursor , lang , trust ) : query = 'UPDATE pg_language SET lanpltrusted = %s WHERE lanname=%s' cursor . execute ( query , ( trust , lang ) ) return True
changes if language is trusted for db .