Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
git grep -l 'SyntaxError: invalid.*' | xargs sed -i.bak 's/SyntaxErro…
Browse files Browse the repository at this point in the history
…r: invalid.*/SyntaxError: invalid .../'
  • Loading branch information
mkoeppe committed Sep 16, 2021
1 parent 98a1cee commit 8511141
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/doc/de/tutorial/interactive_shell.rst
Expand Up @@ -385,7 +385,7 @@ z.B. ``NameError`` oder ``ValueError`` (vgl. Python Library Reference
File "<console>", line 1
ZZ(3)_2
^
SyntaxError: invalid syntax
SyntaxError: invalid ...

sage: EllipticCurve([0,infinity])
------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/doc/en/tutorial/interactive_shell.rst
Expand Up @@ -465,7 +465,7 @@ for a complete list of exceptions). For example,
File "<console>", line 1
ZZ(3)_2
^
SyntaxError: invalid syntax
SyntaxError: invalid ...

sage: EllipticCurve([0,infinity])
------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/doc/fr/tutorial/interactive_shell.rst
Expand Up @@ -472,7 +472,7 @@ de référence de la bibliothèque de Python [PyLR]_ pour une liste complète).
File "<console>", line 1
ZZ(3)_2
^
SyntaxError: invalid syntax
SyntaxError: invalid ...

sage: EllipticCurve([0,infinity])
------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/doc/pt/tutorial/interactive_shell.rst
Expand Up @@ -452,7 +452,7 @@ exemplo,
File "<console>", line 1
ZZ(3)_2
^
SyntaxError: invalid syntax
SyntaxError: invalid ...
sage: EllipticCurve([0,infinity])
------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/doc/ru/tutorial/interactive_shell.rst
Expand Up @@ -369,7 +369,7 @@ Wall time. Однако, если существует существенная
File "<console>", line 1
ZZ(3)_2
^
SyntaxError: invalid syntax
SyntaxError: invalid ...

sage: EllipticCurve([0,infinity])
------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/sage/combinat/ncsf_qsym/tutorial.py
Expand Up @@ -132,7 +132,7 @@
sage: M[]
Traceback (most recent call last):
...
SyntaxError: invalid syntax
SyntaxError: invalid ...
Working with symmetric functions
Expand Down
2 changes: 1 addition & 1 deletion src/sage/doctest/forker.py
Expand Up @@ -581,7 +581,7 @@ def _run(self, test, compileflags, out):
....: @syntax error
Traceback (most recent call last):
...
SyntaxError: invalid syntax
SyntaxError: invalid ...
sage: a = 1 # py3
....: @syntax error
Traceback (most recent call last):
Expand Down
2 changes: 1 addition & 1 deletion src/sage/misc/sage_eval.py
Expand Up @@ -171,7 +171,7 @@ def sage_eval(source, locals=None, cmds='', preparse=True):
File "<string>", line 1
$x = $y[Integer(3)] # Does Perl syntax work?
^
SyntaxError: invalid syntax
SyntaxError: invalid ...
"""
if isinstance(source, (list, tuple)):
cmds = source[0]
Expand Down
6 changes: 3 additions & 3 deletions src/sage/misc/sageinspect.py
Expand Up @@ -1141,7 +1141,7 @@ def _sage_getargspec_cython(source):
sage: sgc('def f(*x = 5, z = {(1,2,3): True}): pass')
Traceback (most recent call last):
...
SyntaxError: invalid syntax
SyntaxError: invalid ...
sage: sgc('def f(int *x = 5, z = {(1,2,3): True}): pass')
Traceback (most recent call last):
...
Expand All @@ -1153,7 +1153,7 @@ def _sage_getargspec_cython(source):
sage: sgc('def f(int x = 5, , z = {(1,2,3): True}): pass')
Traceback (most recent call last):
...
SyntaxError: invalid syntax
SyntaxError: invalid ...
TESTS:
Expand All @@ -1163,7 +1163,7 @@ def _sage_getargspec_cython(source):
sage: def dummy_python(self, *args, x=1): pass # py2
Traceback (most recent call last):
...
SyntaxError: invalid syntax
SyntaxError: invalid ...
sage: def dummy_python(self, *args, x=1): pass # py3
sage: sgc("def dummy_python(self, *args, x=1): pass") # py3
ArgSpec(args=['self', 'x'], varargs='args', keywords=None, defaults=(1,))
Expand Down
2 changes: 1 addition & 1 deletion src/sage/repl/preparse.py
Expand Up @@ -118,7 +118,7 @@
sage: eval('4.__add__(3)')
Traceback (most recent call last):
...
SyntaxError: invalid syntax
SyntaxError: invalid ...
Symbolic functional notation::
Expand Down

0 comments on commit 8511141

Please sign in to comment.