@classmethod<EOL><INDENT>def parse(cls, *args, **kwargs):<DEDENT>
try:<EOL><INDENT>return cls.from_string(*args, **kwargs)<EOL><DEDENT>except PipfileParseError:<EOL><INDENT>return cls.from_requirements(*args, **kwargs)<EOL><DEDENT>
Try to parse provided Pipfile{,.lock} content.

        Try to determine whether Pipfile{,.lock} or raw requirements were used.