#NEWLINE# def get_session_data( self , pop = False ) : #NEWLINE# #INDENT# 'Returns the session data as a dictionary.\n\n        :param pop:\n            If True, removes the session.\n        :returns:\n            A deserialized session, or None.\n        ' #NEWLINE# func = ( self . session . pop if pop else self . session . get ) #NEWLINE# rv = func ( '_user' , None ) #NEWLINE# if ( data is not None ) : #NEWLINE# #INDENT# data = self . store . deserialize_session ( rv ) #NEWLINE# if data : #NEWLINE# #INDENT# return data #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not pop ) : #NEWLINE# #INDENT# self . session . pop ( '_user' , None ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return None