diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-03-17 14:55:57 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-03-17 14:55:57 -0500 |
| commit | 48b995fa62004e0595b4de9edb93f3ea2677a397 (patch) | |
| tree | 1b2443d960d68eb10bd4e14b83be8f01115ab717 /flake8/processor.py | |
| parent | 3da9fd3cb734f5d5a528036e3eb4f8e5e14fe63c (diff) | |
| download | flake8-48b995fa62004e0595b4de9edb93f3ea2677a397.tar.gz | |
Remove unnecessary and outdated test runner
Diffstat (limited to 'flake8/processor.py')
| -rw-r--r-- | flake8/processor.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/flake8/processor.py b/flake8/processor.py index 1dc27a1..bcb33cc 100644 --- a/flake8/processor.py +++ b/flake8/processor.py @@ -46,14 +46,16 @@ class FileProcessor(object): NOQA_FILE = re.compile(r'\s*# flake8[:=]\s*noqa', re.I) - def __init__(self, filename, options): + def __init__(self, filename, options, lines=None): """Initialice our file processor. :param str filename: Name of the file to process """ self.filename = filename - self.lines = self.read_lines() + self.lines = lines + if lines is None: + self.lines = self.read_lines() self.strip_utf_bom() self.options = options |
