From 814236d6947dfcc4773517449da1e626e0472d3c Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Wed, 21 Oct 2015 17:48:52 +0000 Subject: Use six to portably handle module renames in Python 2 and 3 llvm-svn: 250915 --- lldb/test/python_api/frame/TestFrames.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lldb/test/python_api') diff --git a/lldb/test/python_api/frame/TestFrames.py b/lldb/test/python_api/frame/TestFrames.py index 651921128c9..42fa8b9d1f4 100644 --- a/lldb/test/python_api/frame/TestFrames.py +++ b/lldb/test/python_api/frame/TestFrames.py @@ -3,6 +3,8 @@ Use lldb Python SBFrame API to get the argument values of the call stacks. And other SBFrame API tests. """ +import lldb_shared + import os, time import re import unittest2 @@ -42,8 +44,8 @@ class FrameAPITestCase(TestBase): # depth of 3 of the 'c' leaf function. callsOfA = 0 - import StringIO - session = StringIO.StringIO() + from six import StringIO as SixStringIO + session = SixStringIO() while process.GetState() == lldb.eStateStopped: thread = process.GetThreadAtIndex(0) # Inspect at most 3 frames. -- cgit v1.2.3