MCPcopy Index your code
hub / github.com/aws/aws-cli / parse_registered_feature_ids

Function parse_registered_feature_ids

tests/functional/botocore/test_useragent.py:33–41  ·  view source on GitHub ↗

Parse registered feature ids in user agent string. :type ua_string: str :rtype: list[str]

(ua_string)

Source from the content-addressed store, hash-verified

31
32
33def parse_registered_feature_ids(ua_string):
34 """Parse registered feature ids in user agent string.
35
36 :type ua_string: str
37 :rtype: list[str]
38 """
39 ua_fields = ua_string.split(' ')
40 feature_field = [field for field in ua_fields if field.startswith('m/')][0]
41 return feature_field[2:].split(',')
42
43
44class UACapHTTPStubber(ClientHTTPStubber):

Calls

no outgoing calls

Tested by

no test coverage detected