Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
66199902
Commit
66199902
authored
6 years ago
by
Semyon Proshev
Browse files
Options
Download
Email Patches
Plain Diff
Improve inspection message (PY-27705, PY-32814)
parent
8a765151
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/src/com/jetbrains/python/inspections/PyInterpreterInspection.java
+5
-3
...jetbrains/python/inspections/PyInterpreterInspection.java
with
5 additions
and
3 deletions
+5
-3
python/src/com/jetbrains/python/inspections/PyInterpreterInspection.java
+
5
-
3
View file @
66199902
...
...
@@ -103,9 +103,11 @@ public class PyInterpreterInspection extends PyInspection {
else
{
final
LanguageLevel
languageLevel
=
PythonSdkType
.
getLanguageLevelForSdk
(
sdk
);
if
(!
LanguageLevel
.
SUPPORTED_LEVELS
.
contains
(
languageLevel
))
{
registerProblem
(
node
,
"Python "
+
languageLevel
+
" has reached its end-of-life and is no longer supported by "
+
product
,
fixes
.
toArray
(
LocalQuickFix
.
EMPTY_ARRAY
));
registerProblem
(
node
,
"Python "
+
languageLevel
+
" has reached its end-of-life date and it is no longer supported in "
+
product
+
"."
,
fixes
.
toArray
(
LocalQuickFix
.
EMPTY_ARRAY
)
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help