Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is an AttributeError when repr(querystring_parser) #29

Closed
haolian9 opened this issue Sep 2, 2020 · 1 comment · Fixed by #30
Closed

There is an AttributeError when repr(querystring_parser) #29

haolian9 opened this issue Sep 2, 2020 · 1 comment · Fixed by #30

Comments

@haolian9
Copy link

haolian9 commented Sep 2, 2020

reproduce:

python: 3.8.5
python-multipart: 0.0.5

import pytest
from multipart import QuerystringParser


# pylint: disable=invalid-name
def test_repr_QuerystringParser():
    parser = QuerystringParser(callbacks={})

    with pytest.raises(AttributeError):
        repr(parser)

details about that AttributeError

self = <[AttributeError("'QuerystringParser' object has no attribute 'keep_blank_values'") raised in repr()] QuerystringParser object at 0x7f171df674f0>

    def __repr__(self):
        return "%s(keep_blank_values=%r, strict_parsing=%r, max_size=%r)" % (
            self.__class__.__name__,
>           self.keep_blank_values, self.strict_parsing, self.max_size
        )
E       AttributeError: 'QuerystringParser' object has no attribute 'keep_blank_values'
andrew-d added a commit that referenced this issue Sep 16, 2020
andrew-d added a commit that referenced this issue May 4, 2021
* test: add failing test for #29

* multipart: fix missing attribute in QuerystringParser.__repr__
@alex-oleshkevich
Copy link

Any plans for a new release? Current version 0.0.5 has this issue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants