-
-
Notifications
You must be signed in to change notification settings - Fork 526
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
Python 3 preparation: Change syntax of raise statement #15990
Comments
Branch: u/wluebbe/ticket/15990 |
Commit: |
Failed doc test in sage.doctest.forker.SageDocTestRunner.report_unexpected_exception |
comment:3
Attachment: failed-doctest-15990-SageDocTestRunner-line1206.txt In more than 500 py modules the raise statement was (simply) changed to the new syntax. All doctest succeeded but one (see attachment):
I have no idea why ... |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:5
If you can update the branch, I can maybe see if I can figure out what is going wrong in the forker. |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:7
Rebased on 6.2.beta6 and resolved merge conflicts. |
comment:8
It looks like it is just a bug in the doctest (it is testing the debugger, so the actual source code ends up being in the output to check). Otherwise, looks good. (Hopefully this will get merged ASAP before it there are a ton of conflicts again). New commits:
|
Reviewer: R. Andrew Ohana |
Author: Wilfried Luebbe |
Changed branch from u/wluebbe/ticket/15990 to u/ohanar/raise_statement |
comment:9
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:17
Merge conflicts, you'll probably have to wait for the next beta and merge that in. |
comment:18
You can now merge in beta7 |
comment:19
After resolving merge conflicts still tests OK
New commits:
|
Changed branch from u/ohanar/raise_statement to u/wluebbe/ticket/15990 |
Changed commit from |
Changed branch from u/wluebbe/ticket/15990 to u/wluebbe/ticket/15990b |
comment:21
I merged with ticket:15148 and ticket:11726 and tested. Will it merge now :-/ |
comment:22
Your branch doesn't exist... |
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. Last 10 new commits:
|
Commit: |
comment:24
Aaargh! I didn't push ... |
comment:25
Merges cleanly. |
Changed branch from u/wluebbe/ticket/15990b to |
Only the modern syntax like
raise E(V)
andraise E(V).with_traceback(T)
is accepted by Python 3.Almost all cases change
raise E, V
toraise E(V)
where V is a string.TODO:
with_traceback
were omitted inlibfuturize/fixes/raise.py
. (Perhaps this belongs to stage 2?)Changes according to
lib2to3/fixes/fix_raise.py
:CC: @tscrim
Component: distribution
Author: Wilfried Luebbe
Branch/Commit:
136948a
Reviewer: R. Andrew Ohana
Issue created by migration from https://trac.sagemath.org/ticket/15990
The text was updated successfully, but these errors were encountered: