Page MenuHomeSoftware Heritage

msgpack.unpackb: Use raw=False when possible.
ClosedPublic

Authored by vlorentz on Nov 5 2018, 5:03 PM.

Details

Summary

PendingDeprecationWarning: encoding is deprecated, Use raw=False instead.

Diff Detail

Repository
rDCORE Foundations and core functionalities
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

zack requested changes to this revision.Nov 5 2018, 5:05 PM
zack added subscribers: olasd, zack.

I've tried this before too, but we can't do that yet, because the version of msgpack we use in Debian stable doesn't yet have raw=False.

cc: @olasd with whom I've discussed this in the past

This revision now requires changes to proceed.Nov 5 2018, 5:05 PM

The fallback to encoding='utf-8' should fix that issue

Oh, silly me, I commented without checking that first.
Fine by me then :) Thanks!

This revision is now accepted and ready to land.Nov 5 2018, 5:09 PM
This revision was automatically updated to reflect the committed changes.