@deprecated(Version('Twisted', 16, 7, 0), _GETPAGE_REPLACEMENT_TEXT)
def downloadPage(url, file, contextFactory=None, *args, **kwargs):
 factoryFactory = (lambda url, *a, **kw: HTTPDownloader(url, file, *a, **kw))
 return _makeGetterFactory(url, factoryFactory, contextFactory=contextFactory, *args, **kwargs).deferred

@ deprecated ( Version ( 'Twisted' , 16 , 7 , 0 ) , _GETPAGE_REPLACEMENT_TEXT ) def downloadPage ( url , file , contextFactory = None , * args , ** kwargs ) : factoryFactory = ( lambda url , * a , ** kw : HTTPDownloader ( url , file , * a , ** kw ) ) return _makeGetterFactory ( url , factoryFactory , contextFactory = contextFactory , * args , ** kwargs ) . deferred
download a web page to a file .