[Lldb-commits] [lldb] r356904 - Python 2/3 compat: unichr vs chr

Serge Guelton via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 25 08:12:48 PDT 2019


Author: serge_sans_paille
Date: Mon Mar 25 08:12:48 2019
New Revision: 356904

URL: http://llvm.org/viewvc/llvm-project?rev=356904&view=rev
Log:
Python 2/3 compat: unichr vs chr

Modified:
    lldb/trunk/examples/summaries/cocoa/CFString.py

Modified: lldb/trunk/examples/summaries/cocoa/CFString.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/summaries/cocoa/CFString.py?rev=356904&r1=356903&r2=356904&view=diff
==============================================================================
--- lldb/trunk/examples/summaries/cocoa/CFString.py (original)
+++ lldb/trunk/examples/summaries/cocoa/CFString.py Mon Mar 25 08:12:48 2019
@@ -11,6 +11,10 @@ import lldb
 import lldb.runtime.objc.objc_runtime
 import lldb.formatters.Logger
 
+try:
+    unichr
+except NameError:
+    unichr = chr
 
 def CFString_SummaryProvider(valobj, dict):
     logger = lldb.formatters.Logger.Logger()




More information about the lldb-commits mailing list