<s> from . import BaseBackend <EOL> import flask <EOL> class SessionBackend ( BaseBackend ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , key = "<STR_LIT>" ) : <EOL> """<STR_LIT>""" <EOL> self . key = key <EOL> def get ( self , blueprint ) : <EOL> key = self . key . format ( bp = blueprint ) <EOL> return flask . session . get ( key ) <EOL> def set ( self , blueprint , token ) : <EOL> key = self . key . format ( bp = blueprint ) <EOL> flask . session [ key ] = token <EOL> def delete ( self , blueprint ) : <EOL> key = self . key . format ( bp = blueprint ) <EOL> del flask . session [ key ] </s>
