[cfe-commits] r169887 - /cfe/trunk/bindings/python/clang/cindex.py
Matt Beaumont-Gay
matthewbg at google.com
Tue Dec 11 09:37:46 PST 2012
Author: matthewbg
Date: Tue Dec 11 11:37:46 2012
New Revision: 169887
URL: http://llvm.org/viewvc/llvm-project?rev=169887&view=rev
Log:
Fix a copypasto bug. Also rename the parameter in question to not shadow the
'file' builtin, and fix up a docstring a little.
Hat tip to Sebastian Kreft Carreno at Google for noticing the bug.
Modified:
cfe/trunk/bindings/python/clang/cindex.py
Modified: cfe/trunk/bindings/python/clang/cindex.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/bindings/python/clang/cindex.py?rev=169887&r1=169886&r2=169887&view=diff
==============================================================================
--- cfe/trunk/bindings/python/clang/cindex.py (original)
+++ cfe/trunk/bindings/python/clang/cindex.py Tue Dec 11 11:37:46 2012
@@ -3046,13 +3046,13 @@
Config.library_path = path
@staticmethod
- def set_library_file(file):
- """Set the exact location of libclang from"""
+ def set_library_file(filename):
+ """Set the exact location of libclang"""
if Config.loaded:
raise Exception("library file must be set before before using " \
"any other functionalities in libclang.")
- Config.library_file = path
+ Config.library_file = filename
@staticmethod
def set_compatibility_check(check_status):
More information about the cfe-commits
mailing list