fixed PY-13720 PyCharm incorrectly identifies syntax error for Python 3.4

This commit is contained in:
Ekaterina Tuzova
2014-08-25 12:34:25 +04:00
parent 8c6bfdc713
commit 61ec21d0e1
2 changed files with 2 additions and 2 deletions
@@ -295,7 +295,7 @@ public abstract class CompatibilityVisitor extends PyAnnotator {
}
}
commonRegisterProblem(message, " not support this syntax. Raise with no arguments can only be used in an except block",
len, node, null);
len, node, null, false);
// raise 1, 2, 3
len = 0;
message = new StringBuilder(myCommonMessage);
@@ -18,7 +18,7 @@ try:
<error descr="Python version 3.0 does not have module __builtin__">import __builtin__</error>
<error descr="Python version 3.0 does not support this syntax. Raise with no arguments can only be used in an except block">raise</error>
<warning descr="Python version 3.0 does not support this syntax. Raise with no arguments can only be used in an except block">raise</warning>
try:
pass