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

[BEAM-2365] Use the highest pickle protocol available. #3226

Closed
wants to merge 3 commits into from

Conversation

robertwb
Copy link
Contributor

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

  • Make sure the PR title is formatted like:
    [BEAM-<Jira issue #>] Description of pull request
  • Make sure tests pass via mvn clean verify.
  • Replace <Jira issue #> in the title with the actual Jira issue
    number, if there is one.
  • If this contribution is large, please file an Apache
    Individual Contributor License Agreement.

@robertwb
Copy link
Contributor Author

R: @vikkyrk

@robertwb
Copy link
Contributor Author

jenkins: retest this please

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling accd42b on robertwb:pickle into ** on apache:master**.

@@ -365,7 +365,7 @@ def maybe_dill_dumps(o):
# We need to use the dill pickler for objects of certain custom classes,
# including, for example, ones that contain lambdas.
try:
return pickle.dumps(o)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use https://docs.python.org/2/library/pickle.html#pickle.HIGHEST_PROTOCOL to be more clear with the intent?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@vikkyrk
Copy link
Contributor

vikkyrk commented May 26, 2017

LGTM

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 45fb55a on robertwb:pickle into ** on apache:master**.

@asfgit asfgit closed this in 2994fce May 26, 2017
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 this pull request may close these issues.

3 participants