[cindex.py] Fix comments

llvm-svn: 159492
This commit is contained in:
Arnaud A. de Grandmaison 2012-06-30 20:43:37 +00:00
parent a164735baa
commit 8599ccc6b8
2 changed files with 2 additions and 2 deletions

View File

@ -2206,7 +2206,7 @@ class CompilationDatabase(ClangObject):
def getCompileCommands(self, filename):
"""
Get an iterable object providing all the CompileCommands available to
build filename. Raise KeyError if filename is not found in the database.
build filename. Returns None if filename is not found in the database.
"""
return CompilationDatabase_getCompileCommands(self, filename)

View File

@ -22,7 +22,7 @@ def test_create():
cdb = CompilationDatabase.fromDirectory(kInputsDir)
def test_lookup_fail():
"""Check an assertion is raised when file lookup failed"""
"""Check file lookup failure"""
cdb = CompilationDatabase.fromDirectory(kInputsDir)
assert cdb.getCompileCommands('file_do_not_exist.cpp') == None