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

Compatibility with Python >= 2.6 #5

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ichernetsky
Copy link

Hi there,

In our project we have to use python-bert library, which relies on python-erlastic one, which in turn is not compatible with Python 2.x. I've made it compatible mainly by using six library.

If there are any problems with this pull request, please let me know, I would be more than happy to amend it.

Thank you!

Ivan.

@@ -55,13 +57,13 @@ def decode_100(self, buf, offset):

def decode_115(self, buf, offset):
"""SMALL_ATOM_EXT"""
atom_len = buf[offset]
atom_len = six.intexbytes(buf, offset)

Choose a reason for hiding this comment

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

Should be indexbytes

@ichernetsky
Copy link
Author

The typo is fixed. Thanks for pointing that out.

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.

2 participants