mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-10 06:44:18 +00:00
Applied icordasc PR comments
This commit is contained in:
parent
cbba9faf9e
commit
e6e655536c
1 changed files with 5 additions and 5 deletions
|
|
@ -46,7 +46,7 @@ class BaseQReport(pep8.BaseReport):
|
||||||
self.task_queue.put('DONE')
|
self.task_queue.put('DONE')
|
||||||
self.update_state(self.result_queue.get())
|
self.update_state(self.result_queue.get())
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print('... stopped')
|
pass
|
||||||
finally:
|
finally:
|
||||||
# cleanup queues to unlock threads
|
# cleanup queues to unlock threads
|
||||||
while not self.result_queue.empty():
|
while not self.result_queue.empty():
|
||||||
|
|
@ -57,11 +57,11 @@ class BaseQReport(pep8.BaseReport):
|
||||||
super(BaseQReport, self).stop()
|
super(BaseQReport, self).stop()
|
||||||
|
|
||||||
def process_main(self):
|
def process_main(self):
|
||||||
|
if not self._loaded:
|
||||||
|
# Windows needs to parse again the configuration
|
||||||
|
from flake8.main import get_style_guide, DEFAULT_CONFIG
|
||||||
|
get_style_guide(parse_argv=True, config_file=DEFAULT_CONFIG)
|
||||||
try:
|
try:
|
||||||
if not self._loaded:
|
|
||||||
# Windows needs to parse again the configuration
|
|
||||||
from flake8.main import get_style_guide, DEFAULT_CONFIG
|
|
||||||
get_style_guide(parse_argv=True, config_file=DEFAULT_CONFIG)
|
|
||||||
for filename in iter(self.task_queue.get, 'DONE'):
|
for filename in iter(self.task_queue.get, 'DONE'):
|
||||||
self.input_file(filename)
|
self.input_file(filename)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue