Skip to content

Crash on specific pattern #259

@scottkmaxwell

Description

@scottkmaxwell

Hi. I have a file that has this line:

from ci.zimbeast.test_scripts.framework.test_interrupt.seq_lib \
    import IntTestSequence, send_int

Autoflake crashes with:

File ".../python3.10/site-packages/autoflake.py", line 350, in __init__
self.from_, imports = self.IMPORT_RE.split(line, maxsplit=1)
ValueError: not enough values to unpack (expected 2, got 1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions