Ubuntu-focal-kernel/tools/perf/scripts
Adrian Hunter 1e745186c4 perf scripts python: exported-sql-viewer.py: Fix warning display
BugLink: https://bugs.launchpad.net/bugs/1931166

commit f56299a9c9 upstream.

Deprecation warnings are useful only for the developer, not an end user.
Display warnings only when requested using the python -W option. This
stops the display of warnings like:

 tools/perf/scripts/python/exported-sql-viewer.py:5102: DeprecationWarning:
         an integer is required (got type PySide2.QtCore.Qt.AlignmentFlag).
         Implicit conversion to integers using __int__ is deprecated, and
         may be removed in a future version of Python.
    err = app.exec_()

Since the warning can be fixed only in PySide2, we must wait for it to
be finally fixed there.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: stable@vger.kernel.org      # v5.3+
Link: http://lore.kernel.org/lkml/20210521092053.25683-4-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2021-06-18 15:02:41 +02:00
..
perl perf tools: Remove perf.h from source files not needing it 2019-08-29 17:38:32 -03:00
python perf scripts python: exported-sql-viewer.py: Fix warning display 2021-06-18 15:02:41 +02:00
Build