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

Fix the output of example scripts with python3 and handle KeyboardInterrupt #2234

Merged
merged 2 commits into from
Mar 4, 2019

Conversation

lcp
Copy link
Contributor

@lcp lcp commented Feb 27, 2019

Switch to printb to get rid of the prefix 'b' of the byte arrays.
Also handle the KeyboardInterrupt exception for some scripts to avoid the code tracing when stopping the program.

When using python3, 'print' will output the bytes arrays with the "b"
prefix. Switch to printb to get rid of the prefix.

Signed-off-by: Gary Lin <[email protected]>
@brendangregg
Copy link
Member

I would not change hello world from a 1 line to a 4 line program. It needs to be the simplest possible program -- that's its whole purpose.

@yonghong-song
Copy link
Collaborator

[buildbot, test this please]

@yonghong-song
Copy link
Collaborator

@lcp could you revert the hello_world.py change as commented above by @brendangregg?

@lcp
Copy link
Contributor Author

lcp commented Mar 4, 2019

I see. Will update the PR.

@lcp
Copy link
Contributor Author

lcp commented Mar 4, 2019

The change of hello_world.py has been removed.

@yonghong-song
Copy link
Collaborator

[buildbot, test this please]

1 similar comment
@yonghong-song
Copy link
Collaborator

[buildbot, test this please]

@yonghong-song yonghong-song merged commit 34cada1 into iovisor:master Mar 4, 2019
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.

3 participants