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

usbtmc.py resp.tobytes version check python < 3.2 #26

Closed
Dedier opened this issue Aug 19, 2016 · 1 comment
Closed

usbtmc.py resp.tobytes version check python < 3.2 #26

Dedier opened this issue Aug 19, 2016 · 1 comment

Comments

@Dedier
Copy link

Dedier commented Aug 19, 2016

In read_raw the python version is checked for tobytes or tostring.
This checkes for pythen 3.0, but tobytes was introduced in 3.2.
`

        if sys.version_info >= (3, 2):
            resp = resp.tobytes()
        else:
            resp = resp.tostring()

`

@alexforencich
Copy link
Contributor

Should be fixed now.

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

No branches or pull requests

2 participants