Thriftpy / thriftpy

Thriftpy has been deprecated, please migrate to https://github.com/Thriftpy/thriftpy2
MIT License
1.15k stars 288 forks source link

deprecation warnings in compact.py under Python 3.5 #302

Open terwilliger42 opened 7 years ago

terwilliger42 commented 7 years ago

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))