MCPcopy Index your code
hub / github.com/RustPython/RustPython / Value

Class Value

Lib/email/_header_value_parser.py:722–734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

720
721
722class Value(TokenList):
723
724 token_type = 'value'
725
726 @property
727 def stripped_value(self):
728 token = self[0]
729 if token.token_type == 'cfws':
730 token = self[1]
731 if token.token_type.endswith(
732 ('quoted-string', 'attribute', 'extended-attribute')):
733 return token.stripped_value
734 return self.value
735
736
737class MimeParameters(TokenList):

Callers 2

get_valueFunction · 0.70
get_parameterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected