From: jonf <jo...@ya...> - 2003-02-14 08:51:53
|
Dear Neal, I began to use pyChecker on Windows2K and I found that it has trouble removing warning from the standard library (when ignoreStandardLibrary = 1). Anyway, I changed the code of removeWarnings inside warn.py to normalize the path ------------- Code start her def removeWarnings(warnings, blacklist, std_lib) : # Add of os.path.[normpath + normcase] to std_lib and fileName std_lib = os.path.normpath(os.path.normcase(std_lib)) for index in range(len(warnings)-1, -1, -1) : filename = os.path.normpath(os.path.normcase(warnings[index].file)) if filename in blacklist or (std_lib is not None and utils.startswith(filename, std_lib)) : del warnings[index] return warnings ----------- Code end her I let you decide if you want to include this in the next release Best ! Jon ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca |