[Lldb-commits] [PATCH] D131304: [lldb] Remove uses of six module (NFC)

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 5 16:06:33 PDT 2022


kastiglione added inline comments.


================
Comment at: lldb/packages/Python/lldbsuite/test/lldbtest.py:2278-2281
+        assert not isinstance(patterns, str), \
             "patterns must be a collection of strings"
-        assert not isinstance(substrs, six.string_types), \
+        assert not isinstance(substrs, str), \
             "substrs must be a collection of strings"
----------------
mib wrote:
> kastiglione wrote:
> > this function had a parameter named `str`, which shadowed `builtin.str`. As a fix, in this file I renamed all variables named `str` to `string`.
> nit: If you feel like it, may be you can split everything related to the `str`-> `string` refactor  into a separate since it's orthogonal to removing `six`
I need to at least make the `str` -> `string` rename in the functions where the refactor involves `isinstance(..., str)`. I will remove the other renames, for another diff.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131304/new/

https://reviews.llvm.org/D131304



More information about the lldb-commits mailing list