aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/BinaryStreamError.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2020-07-23 18:35:40 +0200
committerRaphael Isemann <teemperor@gmail.com>2020-07-23 18:36:50 +0200
commit4a3a821c68a1ca4a44de86c5fe88b026134b39c9 (patch)
treeac607a9a2aeafa32bfc58fd9464237a58750b6a5 /llvm/lib/Support/BinaryStreamError.cpp
parent77ae06b8c6c7425c0376dbd526390ba1f48b3db5 (diff)
downloadllvm-4a3a821c68a1ca4a44de86c5fe88b026134b39c9.zip
llvm-4a3a821c68a1ca4a44de86c5fe88b026134b39c9.tar.gz
llvm-4a3a821c68a1ca4a44de86c5fe88b026134b39c9.tar.bz2
[lldb] Make socket_packet_pump.py work in Python3
Summary: The `string_escape` encoding used here was removed in Python 3 which makes the test crash during tearDown: ``` File "lldb/third_party/Python/module/unittest2/unittest2/case.py", line 386, in run self.tearDown() File "lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py", line 124, in tearDown self._pump_queues.verify_queues_empty() File "lldb/packages/Python/lldbsuite/test/tools/lldb-server/socket_packet_pump.py", line 55, in verify_queues_empty _dump_queue(self.packet_queue()) File "lldb/packages/Python/lldbsuite/test/tools/lldb-server/socket_packet_pump.py", line 28, in _dump_queue print(codecs.encode(the_queue.get(True), "string_escape")) LookupError: unknown encoding: string_escape ``` Just replace it with `repr` which should work in both Python versions. Reviewers: labath, JDevlieghere Reviewed By: labath, JDevlieghere Subscribers: JDevlieghere Differential Revision: https://reviews.llvm.org/D84017
Diffstat (limited to 'llvm/lib/Support/BinaryStreamError.cpp')
0 files changed, 0 insertions, 0 deletions