diff options
author | Zachary Turner <zturner@google.com> | 2015-10-06 21:11:28 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-10-06 21:11:28 +0000 |
commit | 6532c6a1e70241e32e922418d39d1d7be5ea28d5 (patch) | |
tree | 372cac5ee6234d1e207fb5820d29acdab44084a1 /lldb/scripts/utilsDebug.py | |
parent | f2be3dfd81150288c401918a97808a6dd91a60fa (diff) | |
download | bcm5719-llvm-6532c6a1e70241e32e922418d39d1d7be5ea28d5.tar.gz bcm5719-llvm-6532c6a1e70241e32e922418d39d1d7be5ea28d5.zip |
Update swig generation scripts to support Python 3.
llvm-svn: 249467
Diffstat (limited to 'lldb/scripts/utilsDebug.py')
-rw-r--r-- | lldb/scripts/utilsDebug.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lldb/scripts/utilsDebug.py b/lldb/scripts/utilsDebug.py index c500aa55572..2cf98f947eb 100644 --- a/lldb/scripts/utilsDebug.py +++ b/lldb/scripts/utilsDebug.py @@ -55,9 +55,9 @@ class CDebugFnVerbose: def dump_object( self, vstrText, vObject ): if CDebugFnVerbose.bVerboseOn == False: return; - print "%d%s> Dp: %s" % (CDebugFnVerbose.__nLevel, self.__get_dots(), - vstrText),; - print vObject; + sys.stdout.write("%d%s> Dp: %s" % (CDebugFnVerbose.__nLevel, self.__get_dots(), + vstrText)); + print(vObject); #++------------------------------------------------------------------------ # Details: Print out some progress text given by the client. @@ -69,8 +69,8 @@ class CDebugFnVerbose: def dump_text( self, vstrText ): if CDebugFnVerbose.bVerboseOn == False: return; - print "%d%s> Dp: %s" % (CDebugFnVerbose.__nLevel, self.__get_dots(), - vstrText); + print("%d%s> Dp: %s" % (CDebugFnVerbose.__nLevel, self.__get_dots(), + vstrText)); # Private methods: def __init__( self, vstrFnName ): @@ -100,8 +100,8 @@ class CDebugFnVerbose: #-- def __indent_back( self ): if CDebugFnVerbose.bVerboseOn: - print "%d%s< fn: %s" % (CDebugFnVerbose.__nLevel, self.__get_dots(), - self.__strFnName); + print("%d%s< fn: %s" % (CDebugFnVerbose.__nLevel, self.__get_dots(), + self.__strFnName)); CDebugFnVerbose.__nLevel -= 1; #++------------------------------------------------------------------------ @@ -116,8 +116,8 @@ class CDebugFnVerbose: CDebugFnVerbose.__nLevel += 1; self.__strFnName = vstrFnName; if CDebugFnVerbose.bVerboseOn: - print "%d%s> fn: %s" % ( CDebugFnVerbose.__nLevel, self.__get_dots(), - self.__strFnName); + print("%d%s> fn: %s" % ( CDebugFnVerbose.__nLevel, self.__get_dots(), + self.__strFnName)); # Private statics attributes: __nLevel = 0; # Indentation level counter |