I'm pre-emptively merging my own changes that I submitted upstream here for
milestone 1.6
This commit is contained in:
Ian Cordasco 2012-11-08 10:47:12 -05:00
commit ada8d325ca

View file

@ -1205,7 +1205,8 @@ class Checker(object):
self.line_number += 1
if self.line_number > len(self.lines):
return ''
return self.lines[self.line_number - 1]
line = self.lines[self.line_number - 1]
return '' if line.lower().strip().endswith('# nopep8') else line
def readline_check_physical(self):
"""
@ -1882,7 +1883,7 @@ def process_options(arglist=None, parse_argv=False, config_file=None):
help="use exit code 0 (success), even if there are "
"warnings")
parser.add_option('--max-complexity', default=-1, action='store',
type='int', help="McCabe complexity treshold")
type='int', help="McCabe complexity threshold")
options, args = parser.parse_args(arglist)
options.reporter = None