We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you have something like the following in a file:
try: load foo.sage except: print 'uh oh'
it gets preparsed to this, and blows up because of the bad indentation:
try: execfile("foo.py") except: print 'uh oh'
The preparser is not honoring the leading space before the load statement.
load
Component: misc
Issue created by migration from https://trac.sagemath.org/ticket/5052
The text was updated successfully, but these errors were encountered:
Attachment: trac_5052.patch.gz
Sorry, something went wrong.
The problem was in sage-preparse; it ran a lstrip() on the line and never took into consideration the indentation.
I wanted to add some doctests, since as we see here, anything not tested is broken -- do the files in $SAGE_ROOT/local/bin get doctested?
$SAGE_ROOT/local/bin
works for me
Merged in Sage 3.3.alpha3
sagetrac-cwitty
No branches or pull requests
If you have something like the following in a file:
it gets preparsed to this, and blows up because of the bad indentation:
The preparser is not honoring the leading space before the
load
statement.Component: misc
Issue created by migration from https://trac.sagemath.org/ticket/5052
The text was updated successfully, but these errors were encountered: