cyberdelia / metrology

A library to easily measure what's going on in your python.
https://metrology.readthedocs.org
MIT License
309 stars 25 forks source link

Py3 compatibility for plaintext Graphite reporter #23

Closed misiek08 closed 8 years ago

misiek08 commented 8 years ago

In Python 3 you need to send bytes instead string through sendall function. Check takes about 150ns and make this part of code compatible with new version of Python.

cyberdelia commented 8 years ago

Thanks :bowtie:

misiek08 commented 8 years ago

Same change should be made for every socket call, but I just needed this for my project :)

In free time I will change other calls too, test them so you can release new version with fixes.