mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-18 21:31:00 +00:00
*** empty log message ***
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@370 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
aad0c8bdcc
commit
bb69c2e307
3 changed files with 5 additions and 3 deletions
3
TODO
3
TODO
|
|
@ -1,2 +1,5 @@
|
|||
Check why threaded app wont exit resp. is stalled
|
||||
Another Profiling roundup
|
||||
Named constants for ANSI Color codes
|
||||
Test Proxy Authentication
|
||||
Test socket timeout (how?)
|
||||
|
|
|
|||
|
|
@ -192,6 +192,7 @@ class Configuration(UserDict.UserDict):
|
|||
self.urls = []
|
||||
self.threader = None
|
||||
self.dataLock = None
|
||||
sys.setcheckinterval(10)
|
||||
|
||||
def enableThreading(self, num):
|
||||
"""Enable threading by replacing functions with their
|
||||
|
|
@ -220,6 +221,7 @@ class Configuration(UserDict.UserDict):
|
|||
self.urls = Queue.Queue(0)
|
||||
self.threader = Threader.Threader(num)
|
||||
self.dataLock = Lock()
|
||||
sys.setcheckinterval(20)
|
||||
|
||||
def hasMoreUrls_NoThreads(self):
|
||||
return len(self.urls)
|
||||
|
|
@ -387,11 +389,9 @@ class Configuration(UserDict.UserDict):
|
|||
def error(self, msg):
|
||||
self.message(_("error: %s")%msg)
|
||||
|
||||
|
||||
def message(self, msg):
|
||||
print >> sys.stderr, msg
|
||||
|
||||
|
||||
def readConfig(self, files):
|
||||
"""this big function reads all the configuration parameters
|
||||
used in the linkchecker module."""
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ import getopt, re, os, urlparse, pprint, linkcheck
|
|||
from linkcheck.debuglevels import *
|
||||
from linkcheck import _,StringUtil
|
||||
|
||||
|
||||
Usage = _("""USAGE\tlinkchecker [options] file-or-url...
|
||||
|
||||
OPTIONS
|
||||
|
|
|
|||
Loading…
Reference in a new issue