SHARE
TWEET

Untitled

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