def user_messages_nocache(user):
 from r2.lib.db import queries
 inbox = queries.get_inbox_messages(user)
 sent = queries.get_sent(user)
 messages = _load_messages(list(chain(inbox, sent)))
 return compute_message_trees(messages)

def user_messages_nocache ( user ) : from r2 . lib . db import queries inbox = queries . get_inbox_messages ( user ) sent = queries . get_sent ( user ) messages = _load_messages ( list ( chain ( inbox , sent ) ) ) return compute_message_trees ( messages )
just like user_messages .