From cdfcbbd348667a4e5ec9877f293a6d0e1e7f3901 Mon Sep 17 00:00:00 2001 From: Serge Guelton Date: Mon, 25 Mar 2019 15:12:48 +0000 Subject: [PATCH] Python 2/3 compat: unichr vs chr llvm-svn: 356904 --- lldb/examples/summaries/cocoa/CFString.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lldb/examples/summaries/cocoa/CFString.py b/lldb/examples/summaries/cocoa/CFString.py index 2743702..955d17f 100644 --- a/lldb/examples/summaries/cocoa/CFString.py +++ b/lldb/examples/summaries/cocoa/CFString.py @@ -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() -- 2.7.4