Skip to content

regression: event header can't be copied with normal Python syntax. #112

Description

@kdart-brt

I have been using h11 for a while now. In my code, I made a copy of the headers like this:

headers = ev.headers[:]

That is the normal way to copy a list (headers was a list).

Now, after an update, it does this:
ValueError: too many values to unpack (expected 3)

in debugger, the same:
1:Debug:1/2> ev.headers[:]
*** ValueError: too many values to unpack (expected 3)

Something changed in the headers attrbibute. It also does not have a copy method.
1:Debug:1/2> ev.headers.copy()
*** AttributeError: 'Headers' object has no attribute 'copy'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions