diff -r 39951e911d6b -r 8ccc38b80dc2 Plugins/CheckerPlugins/Pep8/Pep8Dialog.py --- a/Plugins/CheckerPlugins/Pep8/Pep8Dialog.py Sat Jul 13 15:47:47 2013 +0200 +++ b/Plugins/CheckerPlugins/Pep8/Pep8Dialog.py Wed Jul 17 20:13:50 2013 +0200 @@ -317,6 +317,8 @@ checker.messages.sort(key=lambda a: a[1]) for message in checker.messages: fname, lineno, position, text = message + if lineno > len(source): + lineno = len(source) if "__IGNORE_WARNING__" not in Utilities.extractLineFlags( source[lineno - 1].strip()): self.noResults = False