Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix Pickle support: dump() after load() fails#826

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
bourgesl wants to merge2 commits intopython-gitlab:masterfrombourgesl:pickle_fix

Conversation

bourgesl
Copy link
Contributor

This is a one-liner fix to pickle support: pickle.dump() fails after pickle.load()

  File "/home/bourgesl/.local/lib/python3.6/site-packages/gitlab/base.py", line 50, in __getstate__    module = state.pop("_module")KeyError: '_module'

Reason:
Former self._module call invokesset_attr() that stores '_module' attribute inself.__dict__["_updated_attrs"]["_module"] that is not its correct place:self.__dict__["_module"] as expected by getstate()

@max-wittig
Copy link
Member

@bourgesl Thanks for your contribution. Could you please follow our conventional changelog and squash your commits into one?

@max-wittig
Copy link
Member

@bourgesl I've created a new branch with your commit in it. Thanks again!

@bourgeslbourgesl deleted the pickle_fix branchJuly 22, 2019 09:44
@bourgesl
Copy link
ContributorAuthor

Thanks for your help, I did not have time during the week end to squash commits, sorry

@max-wittig
Copy link
Member

No problem. It's merged now :)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@bourgesl@max-wittig

[8]ページ先頭

©2009-2025 Movatter.jp