Skip to content

unidiff.errors.UnidiffParseError: Unexpected hunk found: @@ -2,6 +2,6 @@ #115

@bernd-wechner

Description

@bernd-wechner

I am writing diff files using Python's difflib.unified_diff();

One such file commences with:

--- 
+++ 
@@ -2,6 +2,6 @@

if I try to read it then unidiff fails with:

unidiff.errors.UnidiffParseError: Unexpected hunk found: @@ -2,6 +2,6 @@

I am left suspecting, when comparing it with the README samples that the missing filename is bothering it. If so, it shouldn't really given that difflib.unified_diff() produces output that lacks it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions