Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/g/s/gsutil-3.42/gslib/commands/config.py   gsutil(Download)
        oauth2_refresh_token = oauth2_helper.OAuth2ApprovalFlow(
            oauth2_client, oauth2_scopes, launch_browser)
    elif cred_type == CredTypes.HMAC:
      got_creds = False
      for provider in provider_map:
""")
    api_version = 2
    if cred_type == CredTypes.HMAC: api_version = 1
 
    config_file.write('default_api_version = %d\n' % api_version)
    for opt, opt_arg in self.sub_opts:
      if opt == '-a':
        cred_type = CredTypes.HMAC
        has_a = True
      elif opt == '-b':

src/g/s/gsutil-HEAD/gslib/commands/config.py   gsutil(Download)
        oauth2_refresh_token = oauth2_helper.OAuth2ApprovalFlow(
            oauth2_client, oauth2_scopes, launch_browser)
    elif cred_type == CredTypes.HMAC:
      got_creds = False
      for provider in provider_map:
""")
    api_version = 2
    if cred_type == CredTypes.HMAC: api_version = 1
 
    config_file.write('default_api_version = %d\n' % api_version)
    for opt, opt_arg in self.sub_opts:
      if opt == '-a':
        cred_type = CredTypes.HMAC
        has_a = True
      elif opt == '-b':