MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / from_config

Method from_config

scenedetect/_cli/config.py:283–291  ·  view source on GitHub ↗
(
        config_value: str, default: "EscapedString", length_limit: int = 0
    )

Source from the content-addressed store, hash-verified

281
282 @staticmethod
283 def from_config(
284 config_value: str, default: "EscapedString", length_limit: int = 0
285 ) -> "EscapedString":
286 try:
287 return EscapedString(config_value, length_limit)
288 except (UnicodeDecodeError, UnicodeEncodeError) as ex:
289 raise OptionParseFailure(
290 "Value must be valid UTF-8 string with escape characters."
291 ) from ex
292
293
294class EscapedChar(EscapedString):

Callers

nothing calls this directly

Calls 2

EscapedStringClass · 0.85
OptionParseFailureClass · 0.85

Tested by

no test coverage detected