From 8599ccc6b813ad888eed7b4cf4d2da745a8c472f Mon Sep 17 00:00:00 2001 From: "Arnaud A. de Grandmaison" Date: Sat, 30 Jun 2012 20:43:37 +0000 Subject: [PATCH] [cindex.py] Fix comments llvm-svn: 159492 --- clang/bindings/python/clang/cindex.py | 2 +- clang/bindings/python/tests/cindex/test_cdb.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/bindings/python/clang/cindex.py b/clang/bindings/python/clang/cindex.py index a3da4217de4d..23c1edeb4436 100644 --- a/clang/bindings/python/clang/cindex.py +++ b/clang/bindings/python/clang/cindex.py @@ -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) diff --git a/clang/bindings/python/tests/cindex/test_cdb.py b/clang/bindings/python/tests/cindex/test_cdb.py index 84ac1f87d56f..38de4b1c14e7 100644 --- a/clang/bindings/python/tests/cindex/test_cdb.py +++ b/clang/bindings/python/tests/cindex/test_cdb.py @@ -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