diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2015-02-26 23:53:49 +0000 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2015-02-26 23:53:49 +0000 |
commit | 44949ff3e125dcc4be58e38fc822e24558eb55cc (patch) | |
tree | 8b09038e2d3288bf39e9e3bce0d26062a1dbaa10 /lldb/scripts/Python | |
parent | bee2099c494ecad3d3a1e90d7f8974941dc09e38 (diff) | |
download | llvm-44949ff3e125dcc4be58e38fc822e24558eb55cc.zip llvm-44949ff3e125dcc4be58e38fc822e24558eb55cc.tar.gz llvm-44949ff3e125dcc4be58e38fc822e24558eb55cc.tar.bz2 |
[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
Diffstat (limited to 'lldb/scripts/Python')
-rw-r--r-- | lldb/scripts/Python/buildSwigPython.py | 4 | ||||
-rw-r--r-- | lldb/scripts/Python/finishSwigPythonLLDB.py | 2 |
2 files changed, 3 insertions, 3 deletions
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 |