MCPcopy Create free account
hub / github.com/rthalley/dnspython / from_text

Function from_text

dns/flags.py:67–74  ·  view source on GitHub ↗

Convert a space-separated list of flag text values into a flags value. Returns an ``int``

(text: str)

Source from the content-addressed store, hash-verified

65
66
67def from_text(text: str) -> int:
68 """Convert a space-separated list of flag text values into a flags
69 value.
70
71 Returns an ``int``
72 """
73
74 return _from_text(text, Flag)
75
76
77def to_text(flags: int) -> str:

Callers

nothing calls this directly

Calls 1

_from_textFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…