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
This commit is contained in:
Matt Beaumont-Gay 2012-12-11 17:37:46 +00:00
parent 0f74f173f7
commit 9728393555
1 changed files with 3 additions and 3 deletions

View File

@ -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):