diff options
author | Zachary Turner <zturner@google.com> | 2016-01-27 18:49:35 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-01-27 18:49:35 +0000 |
commit | e89a66bd4a30a9c421405f56aa93ce6818fdddc7 (patch) | |
tree | 0d1f6d03ce97956471d4b0adf098e6cc26858928 /lldb/packages/Python/lldbsuite/test/functionalities | |
parent | 7289e43831d55be74a2814f2bd83789e5f390a76 (diff) | |
download | bcm5719-llvm-e89a66bd4a30a9c421405f56aa93ce6818fdddc7.tar.gz bcm5719-llvm-e89a66bd4a30a9c421405f56aa93ce6818fdddc7.zip |
Fix some python 3 incompatibilities that went in overnight.
* basestring is not a thing anymore. Must use `six.string_types`.
* Must use from __future__ import print_function in every new test
file.
llvm-svn: 258967
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_in_delayslot/TestAvoidBreakpointInDelaySlot.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_in_delayslot/TestAvoidBreakpointInDelaySlot.py b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_in_delayslot/TestAvoidBreakpointInDelaySlot.py index bab56e21040..324401ff44e 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_in_delayslot/TestAvoidBreakpointInDelaySlot.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_in_delayslot/TestAvoidBreakpointInDelaySlot.py @@ -2,6 +2,8 @@ Test specific to MIPS """ +from __future__ import print_function + import os, time import re import unittest2 @@ -45,7 +47,7 @@ class AvoidBreakpointInDelaySlotAPITestCase(TestBase): """Iterate over instructions in function and place a breakpoint on delay slot instruction""" # Get the list of all instructions in the function insts = function.GetInstructions(target) - print insts + print(insts) i = 0 for inst in insts: if (inst.HasDelaySlot()): |