From 8aa373bfa50d856c4ced21fe61d48eb8df230422 Mon Sep 17 00:00:00 2001 From: "Ilya.Kazakevich" Date: Mon, 9 Dec 2019 23:24:52 +0300 Subject: [PATCH] PY-39484: Do not add Python message filter to anything but python run configs. It is safer to add python filter explicitly, not to add it to any other configuration. And that is already done (see PythonTracebackFilter) GitOrigin-RevId: 883972d1694eba9b3fe7602b5348ff1022b80efc --- python/src/META-INF/python-core-common.xml | 1 - .../python/run/PyMessageFilterProvider.java | 18 ------------------ 2 files changed, 19 deletions(-) delete mode 100644 python/src/com/jetbrains/python/run/PyMessageFilterProvider.java diff --git a/python/src/META-INF/python-core-common.xml b/python/src/META-INF/python-core-common.xml index 373706829150..5ff6a6ddac66 100644 --- a/python/src/META-INF/python-core-common.xml +++ b/python/src/META-INF/python-core-common.xml @@ -582,7 +582,6 @@ - diff --git a/python/src/com/jetbrains/python/run/PyMessageFilterProvider.java b/python/src/com/jetbrains/python/run/PyMessageFilterProvider.java deleted file mode 100644 index 8edc85aaf37e..000000000000 --- a/python/src/com/jetbrains/python/run/PyMessageFilterProvider.java +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -package com.jetbrains.python.run; - -import com.intellij.execution.filters.ConsoleFilterProvider; -import com.intellij.execution.filters.Filter; -import com.intellij.openapi.project.Project; -import org.jetbrains.annotations.NotNull; - -/** - * @author traff - */ -public class PyMessageFilterProvider implements ConsoleFilterProvider { - @NotNull - @Override - public Filter[] getDefaultFilters(@NotNull Project project) { - return new Filter[]{new PythonTracebackFilter(project)}; - } -}