def getDeprecationWarningString(callableThing, version): """ Return a string indicating that the callable was deprecated in the given version. @param callableThing: A callable to be deprecated. @param version: The L{twisted.python.versions.Version} that the callable was deprecated in. @return: A string describing the deprecation. """ return "%s was deprecated in %s" % ( fullyQualifiedName(callableThing), getVersionString(version))
def _getDeprecationDocstring(version): return "Deprecated in %s." % getVersionString(version)