diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2017-06-01 20:06:34 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2017-06-01 20:06:34 -0500 |
| commit | feec0754bd2f9c1f3b64ac309481cdfe40162bb7 (patch) | |
| tree | 05ec2cf48c111348ae8e1816e6e45094986d3b1d /src | |
| parent | 68c6577564f63ba6f5ce8df384b72c6018d887ce (diff) | |
| download | flake8-feec0754bd2f9c1f3b64ac309481cdfe40162bb7.tar.gz | |
Add debugging utility for FileChecker
Diffstat (limited to 'src')
| -rw-r--r-- | src/flake8/checker.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/flake8/checker.py b/src/flake8/checker.py index 863024b..569eafa 100644 --- a/src/flake8/checker.py +++ b/src/flake8/checker.py @@ -381,6 +381,10 @@ class FileChecker(object): self.should_process = not self.processor.should_ignore_file() self.statistics['physical lines'] = len(self.processor.lines) + def __repr__(self): + """Provide helpful debugging representation.""" + return 'FileChecker for {}'.format(self.filename) + def _make_processor(self): try: return processor.FileProcessor(self.filename, self.options) |
