Skip to content

bug: Parsing fails for setup.cfg files #84

Description

@ZryletTC

Bug Report

dparse version:
0.6.4

Current behavior:
Parsing a setup.cfg file current yields:

AttributeError: 'str' object has no attribute 'name'

Expected behavior:
I expected no errors and successful reading of setup.cfg files.

Steps to reproduce:

from dparse import parse
parse(content, file_type=("setup.cfg"))

Related code:
Broken by 5b9cb59 because the merge excluded a crucial change from bd34a60:

-           if section.name == 'options':
+            if section == 'options':

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions