]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/python: remove use of str.isascii()
authorAndrew Burgess <aburgess@redhat.com>
Thu, 16 Nov 2023 10:53:34 +0000 (10:53 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Thu, 16 Nov 2023 17:20:54 +0000 (17:20 +0000)
commit7db795bc67abfc8ea3a34057f434960ee0b3cf41
treeeaab1fd57d96769ca4d0be10f73056e24f033ec1
parent44167ca8da9aada2e574525e0548347f80442b09
gdb/python: remove use of str.isascii()

This commit:

  commit 8f6c452b5a4e50fbb55ff1d13328b392ad1fd416
  Date:   Sun Oct 15 22:48:42 2023 +0100

      gdb: implement missing debug handler hook for Python

introduced a use of str.isascii(), which was only added in Python 3.7.

This commit switches to use curses.ascii.isascii(), as this was
available in 3.6.

The same is true for str.isalnum(), which is replaced with
curses.ascii.isalnum().

There should be no user visible changes after this commit.
gdb/python/lib/gdb/missing_debug.py