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

Update readme examples for Python 3 #26

Open
Stevoisiak opened this issue Jun 25, 2019 · 0 comments
Open

Update readme examples for Python 3 #26

Stevoisiak opened this issue Jun 25, 2019 · 0 comments

Comments

@Stevoisiak
Copy link

Stevoisiak commented Jun 25, 2019

The code examples provided in README.md for Using MultiPing are not compatible with Python 3, as they use Python 2 style print statements.

The receive() function returns a tuple containing a results dictionary (addresses and response times) as well as a list of addresses that did not respond in time. The results may be processed like this:

...

for addr, rtt in responses.items():
    print "%s responded in %f seconds" % (addr, rtt)
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

1 participant