Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from __future__ import print_function
import sys
import treq
from twisted.internet.task import react
def main(reactor, domain):
d = treq.head(domain)
d.addErrback(print, "invoked print")
return d
react(main, sys.argv[1:])
# compare:
# python synchronous.py 'https://blahblah'
# python synchronous.py 'https://*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.