def parse(self):
try:<EOL><INDENT>data = toml.loads(self.obj.content, _dict=OrderedDict)<EOL>if data:<EOL><INDENT>for package_type in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>if package_type in data:<EOL><INDENT>for name, specs in data[package_type].items():<EOL><INDENT>if not isinstance(specs, basestring):<EOL><INDENT>continue<EOL><DEDENT>if specs == '<STR_LIT:*>':<EOL><INDENT>specs = '<STR_LIT>'<EOL><DEDENT>self.obj.dependencies.append(<EOL>Dependency(<EOL>name=name, specs=SpecifierSet(specs),<EOL>dependency_type=filetypes.pipfile,<EOL>line='<STR_LIT>'.join([name, specs]),<EOL>section=package_type<EOL>)<EOL>)<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>except (toml.TomlDecodeError, IndexError) as e:<EOL><INDENT>pass<EOL><DEDENT>
Parse a Pipfile (as seen in pipenv)
:return: