[cfe-commits] r169887 - /cfe/trunk/bindings/python/clang/cindex.py
matthewbg at google.com
Tue Dec 11 09:37:46 PST 2012
Date: Tue Dec 11 11:37:46 2012
New Revision: 169887
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.
--- 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
- def set_library_file(file):
- """Set the exact location of libclang from"""
+ def set_library_file(filename):
+ """Set the exact location of libclang"""
raise Exception("library file must be set before before using " \
"any other functionalities in libclang.")
- Config.library_file = path
+ Config.library_file = filename
More information about the cfe-commits