def makeConnections(app):
 if (web.proxies is None):
  web.setupProxy()
 if (web.proxies == 0):
  return
 if app.prefs.connections['allowUsageStats']:
  sendUsageStats()
 if app.prefs.connections['checkForUpdates']:
  app._latestAvailableVersion = getLatestVersionInfo()

def makeConnections ( app ) : if ( web . proxies is None ) : web . setupProxy ( ) if ( web . proxies == 0 ) : return if app . prefs . connections [ 'allowUsageStats' ] : sendUsageStats ( ) if app . prefs . connections [ 'checkForUpdates' ] : app . _latestAvailableVersion = getLatestVersionInfo ( )
a helper function to be launched from a thread .