def _getReplacementString(replacement):
 if callable(replacement):
  replacement = _fullyQualifiedName(replacement)
 return ('please use %s instead' % (replacement,))

def _getReplacementString ( replacement ) : if callable ( replacement ) : replacement = _fullyQualifiedName ( replacement ) return ( 'please use %s instead' % ( replacement , ) )
surround a replacement for a deprecated api with some polite text exhorting the user to consider it as an alternative .