diff options
Diffstat (limited to 'vendor/Twisted-10.0.0/doc/web/examples/google.py')
-rw-r--r-- | vendor/Twisted-10.0.0/doc/web/examples/google.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/Twisted-10.0.0/doc/web/examples/google.py b/vendor/Twisted-10.0.0/doc/web/examples/google.py new file mode 100644 index 0000000000..7731f55a1a --- /dev/null +++ b/vendor/Twisted-10.0.0/doc/web/examples/google.py @@ -0,0 +1,9 @@ +from twisted.web.google import checkGoogle +from twisted.python.util import println +from twisted.internet import reactor +import sys + +checkGoogle(sys.argv[1:]).addCallbacks( + lambda l:(println(l),reactor.stop()), + lambda e:(println('error:',e),reactor.stop())) +reactor.run() |