Skip to content

fix #591 changing stack trace linenos #592

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

Merged
merged 2 commits into from
Dec 22, 2015
Merged

Conversation

thomasballinger
Copy link
Member

Mimicking the default Python interactive interpreter, change stack traces so they no longer list the line number.

fname = '<input>'
tblist[i] = (fname, lineno, module, something)
# Set the right lineno (encoding header adds an extra line)
if not py3:
if fname == '<input>':
Copy link
Member Author

Choose a reason for hiding this comment

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

This was never true before, since it would be <bpython-input-n> instead.

@thomasballinger thomasballinger merged commit 4cb4e77 into master Dec 22, 2015
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.

1 participant