<s> from __future__ import absolute_import <EOL> import datetime <EOL> import os <EOL> from django . core . mail . backends import filebased <EOL> class EmailBackend ( filebased . EmailBackend ) : <EOL> def _get_filename ( self ) : <EOL> """<STR_LIT>""" <EOL> if self . _fname is None : <EOL> timestamp = datetime . datetime . now ( ) . strftime ( "<STR_LIT>" ) <EOL> fname = "<STR_LIT>" % ( timestamp , abs ( id ( self ) ) ) <EOL> self . _fname = os . path . join ( self . file_path , fname ) <EOL> return self . _fname </s>
