def _deprecateGetPageClasses():
    """
    Mark the protocols and factories associated with L{getPage} and
    L{downloadPage} as deprecated.
    """
    for klass in [
        HTTPPageGetter, HTTPPageDownloader,
        HTTPClientFactory, HTTPDownloader
    ]:
        deprecatedModuleAttribute(
            Version("Twisted", 16, 7, 0),
            getDeprecationWarningString(
                klass,
                Version("Twisted", 16, 7, 0),
                replacement=_GETPAGE_REPLACEMENT_TEXT)
            .split("; ")[1],
            klass.__module__,
            klass.__name__)

    Mark the protocols and factories associated with L{getPage} and
    L{downloadPage} as deprecated.
    
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/client.py