a guest Aug 12th, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- from twisted.internet import defer
- from factories import JocksClientFactory
- def get_jocks_api(host, port, function, args):
- 'the api in charge to provide the interface to download jocks from a jocks server'
- d = defer.Deferred()
- from twisted.internet import reactor
- factory = JocksClientFactory(function, args, d)
- reactor.connectTCP(host, port, factory)
- return d
RAW Paste Data