summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/command_script/import
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-10-23 19:52:36 +0000
committerZachary Turner <zturner@google.com>2015-10-23 19:52:36 +0000
commit58968ac83f23c2987d7bdd349d5b0a82f4a2e812 (patch)
treeb6774965bbc6ddb1822fb946ae4f190ceaf79ccb /lldb/test/functionalities/command_script/import
parent9b058a6ec737bf992ac08fec37a6cf0504bdca45 (diff)
downloadbcm5719-llvm-58968ac83f23c2987d7bdd349d5b0a82f4a2e812.tar.gz
bcm5719-llvm-58968ac83f23c2987d7bdd349d5b0a82f4a2e812.zip
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
Diffstat (limited to 'lldb/test/functionalities/command_script/import')
-rw-r--r--lldb/test/functionalities/command_script/import/thepackage/TPunitA.py5
-rw-r--r--lldb/test/functionalities/command_script/import/thepackage/TPunitB.py5
2 files changed, 8 insertions, 2 deletions
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
OpenPOWER on IntegriCloud