mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-03 20:34:43 +00:00
make interrupt warning a plural form
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2181 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
3ee814aaa2
commit
10e8fd9fe3
1 changed files with 6 additions and 3 deletions
|
|
@ -131,9 +131,12 @@ class Consumer (object):
|
|||
Abort checking and send of-of-output message to logger.
|
||||
"""
|
||||
while not self.no_more_threads():
|
||||
linkcheck.log.warn(linkcheck.LOG_CHECK,
|
||||
_("keyboard interrupt; waiting for %d active threads to finish"),
|
||||
self.active_threads())
|
||||
num = self.active_threads()
|
||||
msg = \
|
||||
_n("keyboard interrupt; waiting for %d active thread to finish",
|
||||
"keyboard interrupt; waiting for %d active threads to finish",
|
||||
num)
|
||||
linkcheck.log.warn(linkcheck.LOG_CHECK, msg, num)
|
||||
self.lock.acquire()
|
||||
try:
|
||||
self.threader.finish()
|
||||
|
|
|
|||
Loading…
Reference in a new issue