Hello community, here is the log from the commit of package gdb for openSUSE:Factory checked in at 2020-04-23 18:29:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gdb (Old) and /work/SRC/openSUSE:Factory/.gdb.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gdb" Thu Apr 23 18:29:32 2020 rev:139 rq:796085 version:8.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/gdb/gdb.changes 2020-04-19 21:35:10.218355615 +0200 +++ /work/SRC/openSUSE:Factory/.gdb.new.2738/gdb.changes 2020-04-23 18:29:33.215986260 +0200 @@ -1,0 +2,6 @@ +Mon Apr 20 14:29:12 UTC 2020 - Tom de Vries <[email protected]> + +- Fix python 3.8 warning [bsc#1169495]. + * gdb-fix-incorrect-use-of-is-operator-for-comparison-in-python-lib-gdb-command-prompt.py.patch + +------------------------------------------------------------------- New: ---- gdb-fix-incorrect-use-of-is-operator-for-comparison-in-python-lib-gdb-command-prompt.py.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gdb.spec ++++++ --- /var/tmp/diff_new_pack.m3g3ww/_old 2020-04-23 18:29:37.179993844 +0200 +++ /var/tmp/diff_new_pack.m3g3ww/_new 2020-04-23 18:29:37.183993852 +0200 @@ -252,6 +252,7 @@ Patch2014: gdb-arch13-2.diff Patch2015: gdb-arch13-3.diff Patch2016: bfd-change-num_group-to-unsigned-int.patch +Patch2017: gdb-fix-incorrect-use-of-is-operator-for-comparison-in-python-lib-gdb-command-prompt.py.patch # Proposed patch for PR symtab/24971 Patch2500: gdb-symtab-prefer-var-def-over-decl.patch @@ -612,6 +613,7 @@ %patch2014 -p1 %patch2015 -p1 %patch2016 -p1 +%patch2017 -p1 %patch2500 -p1 %patch2501 -p1 ++++++ gdb-fix-incorrect-use-of-is-operator-for-comparison-in-python-lib-gdb-command-prompt.py.patch ++++++ Fix incorrect use of 'is' operator for comparison in python/lib/gdb/command/prompt.py The 'is' operator is not meant to be used for comparisons. It currently working is an implementation detail of CPython. CPython 3.8 has added a SyntaxWarning for this. --- gdb/python/lib/gdb/command/prompt.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/python/lib/gdb/command/prompt.py b/gdb/python/lib/gdb/command/prompt.py index 3d662a7d3f..04b9e49c22 100644 --- a/gdb/python/lib/gdb/command/prompt.py +++ b/gdb/python/lib/gdb/command/prompt.py @@ -45,7 +45,7 @@ The currently defined substitutions are: self.hook_set = False def get_show_string (self, pvalue): - if self.value is not '': + if self.value: return "The extended prompt is: " + self.value else: return "The extended prompt is not set." @@ -57,7 +57,7 @@ The currently defined substitutions are: return "" def before_prompt_hook(self, current): - if self.value is not '': + if self.value: return gdb.prompt.substitute_prompt(self.value) else: return None
