diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2015-08-19 20:32:52 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2015-08-19 20:32:52 -0500 |
| commit | 1c6c1f51163784005dac358d60ecb8781d726151 (patch) | |
| tree | dacdf0c8bd3f55862d9a2ed5122192fcc12f4623 /setup.py | |
| parent | e847ed8bf070dc4d661746bc1957bbebd3d0ae5c (diff) | |
| download | flake8-bug/74.tar.gz | |
Refactor how we use StyleGuides for better error recoverybug/74
In bug 74 we discovered that there are some less than ideal problems
around our use of multiprocessing. This is a first attempt at fixing
74 by using a fake StyleGuide object which proxies to the real one,
and will catch and handle exceptions and then posibly retry the
operation we were trying to perform in the first place.
Currently we're only implementing that logic for StyleGuide.check_files
but we should be careful to implement this in other functions used in
hooks and elsewhere.
Note: there may be a simpler way to fix this with a context manager
that will do the right thing. That may also prove simpler to implement
but that will have a much larger impact on the code-base than this.
Related to bug #74
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions
