mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't iterate through names in __all__ which are not valid Python identifiers (PY-5503)
This commit is contained in:
@@ -185,6 +185,9 @@ public class PyFileImpl extends PsiFileBase implements PyFile, PyExpression {
|
||||
|
||||
if (remainingDunderAll != null) {
|
||||
for (String s: remainingDunderAll) {
|
||||
if (!PyNames.isIdentifier(s)) {
|
||||
continue;
|
||||
}
|
||||
if (!processor.execute(new LightNamedElement(myManager, PythonLanguage.getInstance(), s), resolveState)) return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
__all__ = ['xyzzy', 'shazam']
|
||||
__all__ = ['xyzzy', 'shazam', 'xy is not a valid python identifier']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user