def _get_user_agent():
 product_tokens = []
 version = sdk_update_checker.GetVersionObject()
 if (version is None):
  release = 'unknown'
 else:
  release = version['release']
 product_tokens.append(('%s/%s' % (SDK_PRODUCT, release)))
 product_tokens.append(appengine_rpc.GetPlatformToken())
 python_version = '.'.join((str(i) for i in sys.version_info))
 product_tokens.append(('Python/%s' % python_version))
 return ' '.join(product_tokens)

def _get_user_agent ( ) : product_tokens = [ ] version = sdk_update_checker . GetVersionObject ( ) if ( version is None ) : release = 'unknown' else : release = version [ 'release' ] product_tokens . append ( ( '%s/%s' % ( SDK_PRODUCT , release ) ) ) product_tokens . append ( appengine_rpc . GetPlatformToken ( ) ) python_version = '.' . join ( ( str ( i ) for i in sys . version_info ) ) product_tokens . append ( ( 'Python/%s' % python_version ) ) return ' ' . join ( product_tokens )
returns the value of the user-agent header to use for update requests .