Commits

Sébastien CHAZALLET committed bd07103

Simplier correction

Comments (0)

Files changed (1)

     """
     flake8_style = get_style_guide(
         config_file=DEFAULT_CONFIG, ignore=ignore, max_complexity=complexity)
-    return flake8_style.input_file(
-        None, lines=['%s\n' % l for l in code.splitlines()])
+    return flake8_style.input_file(None, lines=code.splitlines(True))
 
 
 class Flake8Command(setuptools.Command):