Commits

Ian Cordasco  committed 14cd3ab

Closes #54

This was really the only major difference and it worked.

  • Participants
  • Parent commits a38b3ed
  • Branches refactor

Comments (0)

Files changed (1)

File flake8/main.py

 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