Source

flake8 / flake8 / main.py

The branch 'refactor' does not exist.
Diff from to

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