@classmethod<EOL><INDENT>def from_string(cls, pipfile_content: str):<DEDENT>
_LOGGER.debug("<STR_LIT>")<EOL>try:<EOL><INDENT>parsed = toml.loads(pipfile_content)<EOL>parsed = parsed.primitive<EOL><DEDENT>except Exception as exc:<EOL><INDENT>try:<EOL><INDENT>parsed = json.loads(pipfile_content)<EOL><DEDENT>except Exception as exc:<EOL><INDENT>raise PipfileParseError("<STR_LIT>") from exc<EOL><DEDENT><DEDENT>return cls.from_dict(parsed)<EOL>
Parse Pipfile from its string representation.