MCPcopy
hub / github.com/beetbox/beets / set_parse

Method set_parse

beets/dbcore/db.py:720–722  ·  view source on GitHub ↗

Set the object's key to a value represented by a string.

(self, key, string: str)

Source from the content-addressed store, hash-verified

718 return cls._type(key).parse(string)
719
720 def set_parse(self, key, string: str):
721 """Set the object's key to a value represented by a string."""
722 self[key] = self._parse(key, string)
723
724 def __getstate__(self):
725 """Return the state of the object for pickling.

Callers 3

set_fieldsMethod · 0.80
set_fieldsMethod · 0.80
apply_Function · 0.80

Calls 1

_parseMethod · 0.95

Tested by

no test coverage detected