def build_user_agent():
 global USER_AGENT
 if USER_AGENT:
  return USER_AGENT
 ua_tuple = ('Mozilla/5.0', ('(%s; U; %s; en-us)' % (platform.system(), platform.architecture()[0])), ('Python/%s' % platform.python_version()), '(KHTML, like Gecko)', ('speedtest-cli/%s' % __version__))
 USER_AGENT = ' '.join(ua_tuple)
 printer(USER_AGENT, debug=True)
 return USER_AGENT

def build_user_agent ( ) : global USER_AGENT if USER_AGENT : return USER_AGENT ua_tuple = ( 'Mozilla/5.0' , ( '(%s; U; %s; en-us)' % ( platform . system ( ) , platform . architecture ( ) [ 0 ] ) ) , ( 'Python/%s' % platform . python_version ( ) ) , '(KHTML, like Gecko)' , ( 'speedtest-cli/%s' % __version__ ) ) USER_AGENT = ' ' . join ( ua_tuple ) printer ( USER_AGENT , debug = True ) return USER_AGENT
build a mozilla/5 .