#NEWLINE# def unpickle_context( content , pattern = None ) : #NEWLINE# #INDENT# '\n    Unpickle the context from the given content string or return None.\n    ' #NEWLINE# pickle = get_pickle ( ) #NEWLINE# if ( pattern is None ) : #NEWLINE# #INDENT# pattern = pickled_context_re #NEWLINE# #UNINDENT# match = pattern . search ( content ) #NEWLINE# if match : #NEWLINE# #INDENT# return pickle . loads ( base64 . standard_b64decode ( match . group ( 1 ) ) ) #NEWLINE# #UNINDENT# return None