summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2012-12-11 17:37:46 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2012-12-11 17:37:46 +0000
commit9728393555ea093a53d423f9f1eb1657fd2e131f (patch)
tree04702cd6ac26963a99a21b835ed1c4dcc7bfc850
parent0f74f173f7bd513b62274d92629a47ad6d181c66 (diff)
downloadbcm5719-llvm-9728393555ea093a53d423f9f1eb1657fd2e131f.tar.gz
bcm5719-llvm-9728393555ea093a53d423f9f1eb1657fd2e131f.zip
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. llvm-svn: 169887
-rw-r--r--clang/bindings/python/clang/cindex.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/bindings/python/clang/cindex.py b/clang/bindings/python/clang/cindex.py
index 5e162c0e834..adbf511e685 100644
--- a/clang/bindings/python/clang/cindex.py
+++ b/clang/bindings/python/clang/cindex.py
@@ -3046,13 +3046,13 @@ class Config:
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):
OpenPOWER on IntegriCloud