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/examples | |
parent | 256ba7738ea8a07372a82cadd29e9c08fdf9145c (diff) | |
download | llvm-56f9cfe30c4488aade888905bb6280ecb952a613.tar.gz |
[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/examples')
-rw-r--r-- | lldb/examples/python/scripted_process/scripted_process.py | 7 | ||||
-rw-r--r-- | lldb/examples/summaries/synth.py | 3 |
2 files changed, 3 insertions, 7 deletions
diff --git a/lldb/examples/python/scripted_process/scripted_process.py b/lldb/examples/python/scripted_process/scripted_process.py index b9388ae25e46..48966f8385cb 100644 --- a/lldb/examples/python/scripted_process/scripted_process.py +++ b/lldb/examples/python/scripted_process/scripted_process.py @@ -1,10 +1,8 @@ from abc import ABCMeta, abstractmethod -import six import lldb -@six.add_metaclass(ABCMeta) -class ScriptedProcess: +class ScriptedProcess(metaclass=ABCMeta): """ The base class for a scripted process. @@ -193,8 +191,7 @@ class ScriptedProcess: """ return None -@six.add_metaclass(ABCMeta) -class ScriptedThread: +class ScriptedThread(metaclass=ABCMeta): """ The base class for a scripted thread. diff --git a/lldb/examples/summaries/synth.py b/lldb/examples/summaries/synth.py index 02dcc4f70146..97e84ea9b09d 100644 --- a/lldb/examples/summaries/synth.py +++ b/lldb/examples/summaries/synth.py @@ -33,8 +33,7 @@ class PythonObjectSyntheticChildProvider(object): def gen_child(self, name, value): data = None type = None - import six - if isinstance(value, six.integer_types): + if isinstance(value, int): data = lldb.SBData.CreateDataFromUInt64Array( self.bo, self.ps, [value]) type = self.value.target.GetBasicType(lldb.eBasicTypeLong) |