From 58968ac83f23c2987d7bdd349d5b0a82f4a2e812 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 23 Oct 2015 19:52:36 +0000 Subject: Make uses of unicode literals portable. Six provides six.u() which resolves to either u"" or "" depending on Python version, and and six.unichr() which resolves to either unichr() or chr() depending on Python version. Use these functions anywhere where we were relying on u"" or unichr(). llvm-svn: 251139 --- .../test/functionalities/command_script/import/thepackage/TPunitA.py | 5 ++++- .../test/functionalities/command_script/import/thepackage/TPunitB.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'lldb/test/functionalities/command_script/import') diff --git a/lldb/test/functionalities/command_script/import/thepackage/TPunitA.py b/lldb/test/functionalities/command_script/import/thepackage/TPunitA.py index 86381a1acc2..cd18e4cfc95 100644 --- a/lldb/test/functionalities/command_script/import/thepackage/TPunitA.py +++ b/lldb/test/functionalities/command_script/import/thepackage/TPunitA.py @@ -1,3 +1,6 @@ +import lldb_shared +import six + def command(debugger, command, result, internal_dict): - result.PutCString(u"hello world A") + result.PutCString(six.u("hello world A")) return None diff --git a/lldb/test/functionalities/command_script/import/thepackage/TPunitB.py b/lldb/test/functionalities/command_script/import/thepackage/TPunitB.py index 52db603e512..936201157ac 100644 --- a/lldb/test/functionalities/command_script/import/thepackage/TPunitB.py +++ b/lldb/test/functionalities/command_script/import/thepackage/TPunitB.py @@ -1,3 +1,6 @@ +import lldb_shared +import six + def command(debugger, command, result, internal_dict): - result.PutCString(u"hello world B") + result.PutCString(six.u("hello world B")) return None -- cgit v1.2.3