<s> """<STR_LIT>""" <EOL> from __future__ import print_function , division <EOL> import warnings <EOL> from sympy . utilities . misc import filldedent <EOL> class SymPyDeprecationWarning ( DeprecationWarning ) : <EOL> r"""<STR_LIT>""" <EOL> def __init__ ( self , value = None , feature = None , last_supported_version = None , <EOL> useinstead = None , issue = None , deprecated_since_version = None ) : <EOL> self . fullMessage = "<STR_LIT>" <EOL> if feature : <EOL> if deprecated_since_version : <EOL> self . fullMessage = "<STR_LIT>" % ( feature , deprecated_since_version ) <EOL> else : <EOL> self . fullMessage = "<STR_LIT>" % feature <EOL> if last_supported_version : <EOL> self . fullMessage += ( "<STR_LIT>" <EOL> "<STR_LIT>" ) % last_supported_version <EOL> if useinstead : <EOL> self . fullMessage += "<STR_LIT>" % useinstead <EOL> if issue : <EOL> self . fullMessage += ( "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) % issue <EOL> if value : <EOL> if not isinstance ( value , str ) : <EOL> value = "<STR_LIT>" % repr ( value ) <EOL> value = "<STR_LIT:U+0020>" + value <EOL> else : <EOL> value = "<STR_LIT>" <EOL> self . fullMessage += value <EOL> def __str__ ( self ) : <EOL> return '<STR_LIT>' % filldedent ( self . fullMessage ) <EOL> def warn ( self , stacklevel = <NUM_LIT:2> ) : <EOL> see_above = self . fullMessage <EOL> warnings . warn ( see_above , SymPyDeprecationWarning , stacklevel = stacklevel ) <EOL> warnings . simplefilter ( "<STR_LIT>" , SymPyDeprecationWarning ) </s>
