[pygccxml-commit] SF.net SVN: pygccxml: [420] pydsc_dev/pydsc.py
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2006-08-20 06:29:54
|
Revision: 420 Author: roman_yakovenko Date: 2006-08-19 23:29:43 -0700 (Sat, 19 Aug 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=420&view=rev Log Message: ----------- adding case sensitive to the "ignore" API Modified Paths: -------------- pydsc_dev/pydsc.py Modified: pydsc_dev/pydsc.py =================================================================== --- pydsc_dev/pydsc.py 2006-08-17 07:05:41 UTC (rev 419) +++ pydsc_dev/pydsc.py 2006-08-20 06:29:43 UTC (rev 420) @@ -289,13 +289,18 @@ """ doc_checker.filter = filter_by_path_t( what, filter_by_path_t.FILTER_TYPE.INCLUDE ) -def ignore( what ): +def ignore( what, case_sensitive=False ): """Adds word or list of words to the ignore list. what - word(string) or list of words(strings) to be ignored. """ if isinstance( what, str ): + if not case_sensitive: + what = what.lower() doc_checker.ignored_words.add( what ) else: - map( doc_checker.ignored_words.add, what ) + for word in what: + if case_sensitive: + word = what.lower() + doc_checker.ignored_words.add( word ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |