Commits

Ian Cordasco committed cf2b5ef Merge

Fixes #37.

I'm pre-emptively merging my own changes that I submitted upstream here for
milestone 1.6

Comments (0)

Files changed (1)

         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):
         """
                       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