def _getWarningString(self, attr):
        """
        Create the warning string used by deprecated attributes.
        """
        return _getDeprecationWarningString(
            deprecatedattributes.__name__ + '.' + attr,
            deprecatedattributes.version,
            DEPRECATION_WARNING_FORMAT + ': ' + deprecatedattributes.message)

        Create the warning string used by deprecated attributes.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_deprecate.py