This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG56f9cfe30c44: [lldb] Remove uses of six module (NFC)
(authored by kastiglione).
Changed prior to commit:
https://reviews.llvm.org/D131304?vs=45200
kastiglione updated this revision to Diff 452007.
kastiglione added a comment.
Restore LLDB_USE_SYSTEM_SIX
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131304/new/
https://reviews.llvm.org/D131304
Files:
lldb/bindings/interface/SBData.i
lldb/
DavidSpickett added inline comments.
Comment at: lldb/bindings/python/CMakeLists.txt:63-68
- if(NOT LLDB_USE_SYSTEM_SIX)
-add_custom_command(TARGET ${swig_target} POST_BUILD VERBATIM
- COMMAND ${CMAKE_COMMAND} -E copy
-"${LLDB_SOURCE_DIR}/third_party/Python/modu
JDevlieghere accepted this revision.
JDevlieghere added a comment.
🥳
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@
kastiglione added inline comments.
Comment at: lldb/bindings/python/CMakeLists.txt:63-68
- if(NOT LLDB_USE_SYSTEM_SIX)
-add_custom_command(TARGET ${swig_target} POST_BUILD VERBATIM
- COMMAND ${CMAKE_COMMAND} -E copy
-"${LLDB_SOURCE_DIR}/third_party/Python/module
kastiglione updated this revision to Diff 450843.
kastiglione added a comment.
Herald added a subscriber: mgorny.
remove LLDB_USE_SYSTEM_SIX
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131304/new/
https://reviews.llvm.org/D131304
Files:
lldb/b
DavidSpickett added a comment.
There is also a cmake var `LLDB_USE_SYSTEM_SIX` which can be removed.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131304/new/
https://reviews.llvm.org/D131304
___
lldb-co
kastiglione updated this revision to Diff 450668.
kastiglione added a comment.
Missed a restore of `str` variable name
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131304/new/
https://reviews.llvm.org/D131304
Files:
lldb/bindings/interface/SBDa
kastiglione added a comment.
@mib the tests pass on my machine.
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
kastiglione updated this revision to Diff 450444.
kastiglione added a comment.
Restore some "str" variable names
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131304/new/
https://reviews.llvm.org/D131304
Files:
lldb/bindings/interface/SBData.i
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), \
+
mib added inline comments.
Comment at: lldb/examples/python/scripted_process/scripted_process.py:5
-@six.add_metaclass(ABCMeta)
-class ScriptedProcess:
+class ScriptedProcess(metaclass=ABCMeta):
mib wrote:
> nit: no need to specify `metaclass=ABCMeta`, it can
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:
kastiglione added a comment.
I left `third_party/Python/module/six`, in case there are any lldb scripts that
depend on the existence of `six`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131304/new/
https://reviews.llvm.org/D131304
kastiglione added inline comments.
Comment at: lldb/packages/Python/lldbsuite/support/encoded_file.py:17-25
-def _encoded_read(old_read, encoding):
-def impl(size):
-result = old_read(size)
-# If this is Python 2 then we need to convert the resulting `unicode`
kastiglione created this revision.
kastiglione added reviewers: JDevlieghere, mib, jingham.
Herald added a project: All.
kastiglione requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
With lldb (& llvm) requiring Python 3.6+, use of the `six`
16 matches
Mail list logo