mib accepted this revision.
mib added a comment.
This revision is now accepted and ready to land.

Very cool! Thanks for taking care of this! LGTM with the 2 comments and 
assuming the test suite runs fine :)



================
Comment at: lldb/examples/python/scripted_process/scripted_process.py:5
 
-@six.add_metaclass(ABCMeta)
-class ScriptedProcess:
+class ScriptedProcess(metaclass=ABCMeta):
 
----------------
nit: no need to specify `metaclass=ABCMeta`, it can just be  
`ScriptedProcess(ABC)`


================
Comment at: lldb/examples/python/scripted_process/scripted_process.py:194
 
-@six.add_metaclass(ABCMeta)
-class ScriptedThread:
+class ScriptedThread(metaclass=ABCMeta):
 
----------------
ditto


================
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"
----------------
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`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131304

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to