This was really the only major difference and it worked.
This commit is contained in:
Ian Cordasco 2013-01-09 13:20:18 -05:00
parent 264bc0370a
commit e9366a904e

View file

@ -79,7 +79,7 @@ def check_file(path, ignore=(), complexity=-1):
def check_code(code, ignore=(), complexity=-1):
warning = flakey.check(code, '<stdin>')
warnings = flakey.print_messages(warning, ignore=ignore, code=code)
warnings += pep8style.input_file(None, lines=code.split('\n'))
warnings += pep8style.input_file('-', lines=code.split('\n'))
if complexity > -1:
warnings += mccabe.get_code_complexity(code, complexity)
return warnings