-
-
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: Handle removed execfile() function #16066
Milestone
Comments
Commit: |
Branch: u/aapitzsch/ticket/16066 |
New commits:
|
Author: André Apitzsch |
Reviewer: Frédéric Chapoton |
comment:4
ok, looks good to me. |
Changed branch from u/aapitzsch/ticket/16066 to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Py2 there is the execfile() function, while in Py3 there is none.
The tool 2to3 changes the calls to execfile() to wrapped calls of the builtin
open()
,compile
andexec()
functions.An example of a change
lib2to3/fixes/fix_execfile.py
isThere are 2 occurences of execfile() in
sage/misc/preparser.py
.The code has to depend on the Python version!
This ticket is tracked as a dependency of meta-ticket ticket:16052.
Component: distribution
Author: André Apitzsch
Branch/Commit:
4d24882
Reviewer: Frédéric Chapoton
Issue created by migration from https://trac.sagemath.org/ticket/16066
The text was updated successfully, but these errors were encountered: