Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

deprecation warnings in compact.py under Python 3.5 #302

Open
terwilliger42 opened this issue Jun 29, 2017 · 0 comments
Open

deprecation warnings in compact.py under Python 3.5 #302

terwilliger42 opened this issue Jun 29, 2017 · 0 comments

Comments

@terwilliger42
Copy link

I'm getting deprecation warnings in compact.py when running my unittests on Python 3.5. Will submit a PR.

.../python3.5/site-packages/thriftpy/protocol/compact.py:419: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  write_varint(self.trans, make_zig_zag(i32, 32))
.../python3.5/site-packages/thriftpy/protocol/compact.py:339: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  write_varint(self.trans, i32)
...../python3.5/site-packages/thriftpy/protocol/compact.py:416: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  write_varint(self.trans, make_zig_zag(i16, 16))
.../python3.5/site-packages/thriftpy/protocol/compact.py:422: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  write_varint(self.trans, make_zig_zag(i64, 64))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant