[Lldb-commits] [lldb] r232841 - Avoid output on successful execution of the SWIG scripts
Ed Maste
emaste at freebsd.org
Fri Mar 20 12:59:35 PDT 2015
Author: emaste
Date: Fri Mar 20 14:59:35 2015
New Revision: 232841
URL: http://llvm.org/viewvc/llvm-project?rev=232841&view=rev
Log:
Avoid output on successful execution of the SWIG scripts
Standard practice for tools like this upon success is no output and a
zero return value.
Modified:
lldb/trunk/scripts/buildSwigWrapperClasses.py
lldb/trunk/scripts/finishSwigWrapperClasses.py
Modified: lldb/trunk/scripts/buildSwigWrapperClasses.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/buildSwigWrapperClasses.py?rev=232841&r1=232840&r2=232841&view=diff
==============================================================================
--- lldb/trunk/scripts/buildSwigWrapperClasses.py (original)
+++ lldb/trunk/scripts/buildSwigWrapperClasses.py Fri Mar 20 14:59:35 2015
@@ -129,11 +129,9 @@ def get_help_information():
def program_exit_success( vnResult, vMsg ):
strMsg = "";
- if vMsg.__len__() == 0:
- strMsg = "%s (%d)" % (strExitMsgSuccess, vnResult);
- else:
+ if vMsg.__len__() != 0:
strMsg = "%s: %s (%d)" % (strExitMsgSuccess, vMsg, vnResult);
- print strMsg;
+ print strMsg;
sys.exit( vnResult );
Modified: lldb/trunk/scripts/finishSwigWrapperClasses.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/finishSwigWrapperClasses.py?rev=232841&r1=232840&r2=232841&view=diff
==============================================================================
--- lldb/trunk/scripts/finishSwigWrapperClasses.py (original)
+++ lldb/trunk/scripts/finishSwigWrapperClasses.py Fri Mar 20 14:59:35 2015
@@ -100,11 +100,9 @@ Usage:\n\
def program_exit_success( vnResult, vMsg ):
strMsg = "";
- if vMsg.__len__() == 0:
- strMsg = "%s (%d)" % (strExitMsgSuccess, vnResult);
- else:
+ if vMsg.__len__() != 0:
strMsg = "%s: %s (%d)" % (strExitMsgSuccess, vMsg, vnResult);
- print strMsg;
+ print strMsg;
sys.exit( vnResult );
More information about the lldb-commits
mailing list