From 44949ff3e125dcc4be58e38fc822e24558eb55cc Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Thu, 26 Feb 2015 23:53:49 +0000 Subject: [swig] Fix some typos in the build scripts. Reviewers: zturner, ki.stfu Reviewed By: zturner, ki.stfu Subscribers: ki.stfu, lldb-commits Differential Revision: http://reviews.llvm.org/D7912 llvm-svn: 230706 --- lldb/scripts/Python/buildSwigPython.py | 4 ++-- lldb/scripts/Python/finishSwigPythonLLDB.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lldb/scripts/Python') diff --git a/lldb/scripts/Python/buildSwigPython.py b/lldb/scripts/Python/buildSwigPython.py index 6958a7c..36b0e7e 100644 --- a/lldb/scripts/Python/buildSwigPython.py +++ b/lldb/scripts/Python/buildSwigPython.py @@ -436,7 +436,7 @@ Removes given file, ignoring error if it doesn't exist. """ def remove_ignore_enoent(filename): try: - os.remove( strSwigOutputFile ); + os.remove( filename ); except OSError as e: import errno if e.errno != errno.ENOENT: @@ -702,7 +702,7 @@ def main( vDictArgs ): remove_ignore_enoent( strSwigOutputFile ) open( strSwigOutputFile, 'w' ).close(); # Touch the file if bDebug: - strMsg = strMsgLldbDisablePython; + strMsg = strMsgLldbDisablePythonEnv; return (0, strMsg ); # If this project is being built with LLDB_DISABLE_PYTHON defined, diff --git a/lldb/scripts/Python/finishSwigPythonLLDB.py b/lldb/scripts/Python/finishSwigPythonLLDB.py index a145d88..98f774d 100644 --- a/lldb/scripts/Python/finishSwigPythonLLDB.py +++ b/lldb/scripts/Python/finishSwigPythonLLDB.py @@ -298,7 +298,7 @@ def make_symlink( vDictArgs, vstrFrameworkPythonDir, vstrSrcFile, vstrTargetFile return (bOk, strErrMsg); else: # Resolve vstrSrcFile path relatively the build directory - stdBuildDir = ""; + strBuildDir = ""; if eOSType == utilsOsType.EnumOsType.Windows: # On a Windows platform the vstrFrameworkPythonDir looks like: # llvm\\build\\Lib\\site-packages\\lldb -- cgit v1.1