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

python3 raise #11

Merged
merged 2 commits into from Jun 2, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions py-and-sty.dtx
Expand Up @@ -961,10 +961,10 @@ from your current version of Sage; see
http://www.sagemath.org/doc/installation/sagetex.html.""".format(jobname,
version, pyversion)
if version_check:
raise VersionError, errstr
raise VersionError(errstr)
else:
print '**** WARNING! Skipping version check for .sty and .py files, and'
print errstr
print('**** WARNING! Skipping version check for .sty and .py files, and')
print(errstr)
if ' ' in jobname:
jobname = jobname.strip('"')
self.progress('Processing Sage code for {0}.tex...'.format(jobname))
Expand Down Expand Up @@ -1099,7 +1099,7 @@ http://www.sagemath.org/doc/installation/sagetex.html.""".format(jobname,
elif labelname == 'sagecmdline':
pass # output message already printed
else:
raise ValueError, 'inline() got a bad labelname "{0}"'.format(labelname)
raise ValueError('inline() got a bad labelname "{0}"'.format(labelname))
self.souttmp.write(r'\newlabel{@' + labelname + str(counter) +
'}{{%\n' + s.rstrip() + '}{}{}{}{}}\n')
% \end{macrocode}
Expand Down