diff options
author | Dave Lee <davelee.com@gmail.com> | 2022-08-05 13:35:20 -0600 |
---|---|---|
committer | Dave Lee <davelee.com@gmail.com> | 2022-08-11 19:06:15 -0700 |
commit | 56f9cfe30c4488aade888905bb6280ecb952a613 (patch) | |
tree | 99a60b9c61a4344203d3e645308bd4e871a7590a /lldb/packages/Python/lldbsuite/test/lldbpexpect.py | |
parent | 256ba7738ea8a07372a82cadd29e9c08fdf9145c (diff) | |
download | llvm-56f9cfe30c4488aade888905bb6280ecb952a613.zip llvm-56f9cfe30c4488aade888905bb6280ecb952a613.tar.gz llvm-56f9cfe30c4488aade888905bb6280ecb952a613.tar.bz2 |
[lldb] Remove uses of six module (NFC)
With lldb (& llvm) requiring Python 3.6+, use of the `six` module can be removed.
Differential Revision: https://reviews.llvm.org/D131304
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbpexpect.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lldbpexpect.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbpexpect.py b/lldb/packages/Python/lldbsuite/test/lldbpexpect.py index 22a30c5..f298cc5 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbpexpect.py +++ b/lldb/packages/Python/lldbsuite/test/lldbpexpect.py @@ -4,9 +4,6 @@ from __future__ import absolute_import import os import sys -# Third-party modules -import six - # LLDB Modules import lldb from .lldbtest import * @@ -72,7 +69,7 @@ class PExpectTest(TestBase): self.assertNotIn('\n', cmd) # If 'substrs' is a string then this code would just check that every # character of the string is in the output. - assert not isinstance(substrs, six.string_types), \ + assert not isinstance(substrs, str), \ "substrs must be a collection of strings" self.child.sendline(cmd) |