def DisableUnbrokeredConnections():
 def CreateConnWarning(*args, **kwargs):
  print '*** socket.create_connection used without a broker ***'
  traceback.print_stack()
  raise IOError('FIXME: Please use within a broker context')
 socket.create_connection = CreateConnWarning

def DisableUnbrokeredConnections ( ) : def CreateConnWarning ( * args , ** kwargs ) : print '*** socket.create_connection used without a broker ***' traceback . print_stack ( ) raise IOError ( 'FIXME: Please use within a broker context' ) socket . create_connection = CreateConnWarning
enforce the use of brokers everywhere! .