diff options
author | Zachary Turner <zturner@google.com> | 2015-10-19 23:45:25 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-10-19 23:45:25 +0000 |
commit | 1756e05688a933c91732b21f1edf8ab9dcb8540d (patch) | |
tree | 8d9033344ffcfa8f97ab5fe4f4ab572441b0c065 /lldb/scripts/finishSwigWrapperClasses.py | |
parent | 0b98b27677b0325e5133344407a13410b3cf1423 (diff) | |
download | bcm5719-llvm-1756e05688a933c91732b21f1edf8ab9dcb8540d.tar.gz bcm5719-llvm-1756e05688a933c91732b21f1edf8ab9dcb8540d.zip |
Run py2to3 on lldb/scripts folder.
This mostly fixes some print statements, but there were also some
instances of dict.iteritems() lingering that this found.
llvm-svn: 250762
Diffstat (limited to 'lldb/scripts/finishSwigWrapperClasses.py')
-rw-r--r-- | lldb/scripts/finishSwigWrapperClasses.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/scripts/finishSwigWrapperClasses.py b/lldb/scripts/finishSwigWrapperClasses.py index 7a1c115ffbf..3e576263562 100644 --- a/lldb/scripts/finishSwigWrapperClasses.py +++ b/lldb/scripts/finishSwigWrapperClasses.py @@ -110,7 +110,7 @@ def program_exit_success( vnResult, vMsg ): # Throws: None. #-- def program_exit_on_failure( vnResult, vMsg ): - print("%s%s (%d)" % (strExitMsgError, vMsg, vnResult)); + print(("%s%s (%d)" % (strExitMsgError, vMsg, vnResult))); sys.exit( vnResult ); #++--------------------------------------------------------------------------- @@ -135,13 +135,13 @@ def program_exit( vnResult, vMsg ): # Throws: None. #-- def print_out_input_parameters( vDictArgs ): - for arg, val in vDictArgs.iteritems(): + for arg, val in list(vDictArgs.items()): strEqs = ""; strQ = ""; if val.__len__() != 0: strEqs = " ="; strQ = "\""; - print("%s%s%s %s%s%s\n" % (strParameter, arg, strEqs, strQ, val, strQ)); + print(("%s%s%s %s%s%s\n" % (strParameter, arg, strEqs, strQ, val, strQ))); #++--------------------------------------------------------------------------- # Details: Validate the arguments passed to the program. This function exits @@ -210,8 +210,8 @@ def run_post_process( vStrScriptLang, vstrFinishFileName, vDictArgs ): return (-9, strStatusMsg); if gbDbgFlag: - print(strScriptLangFound % vStrScriptLang); - print(strExecuteMsg % vStrScriptLang); + print((strScriptLangFound % vStrScriptLang)); + print((strExecuteMsg % vStrScriptLang)); # Change where Python looks for our modules strDir = os.path.normcase( strScriptFileDir ); |