def deprecatedToUsefulText(name, deprecated):
 from twisted.python.deprecate import _getDeprecationWarningString
 version = versionToUsefulObject(deprecated[1])
 if deprecated[2]:
  if isinstance(deprecated[2], ast.Keyword):
   replacement = deprecated[2].asList()[1].value
  else:
   replacement = deprecated[2].value
 else:
  replacement = None
 return (_getDeprecationWarningString(name, version, replacement=replacement) + '.')

def deprecatedToUsefulText ( name , deprecated ) : from twisted . python . deprecate import _getDeprecationWarningString version = versionToUsefulObject ( deprecated [ 1 ] ) if deprecated [ 2 ] : if isinstance ( deprecated [ 2 ] , ast . Keyword ) : replacement = deprecated [ 2 ] . asList ( ) [ 1 ] . value else : replacement = deprecated [ 2 ] . value else : replacement = None return ( _getDeprecationWarningString ( name , version , replacement = replacement ) + '.' )
change a c{@deprecated} to a display string .