mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-31 13:10:37 +00:00
use psyco
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1060 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
64ca8570dc
commit
4d9beb4bbe
1 changed files with 7 additions and 0 deletions
|
|
@ -22,6 +22,13 @@ import sys
|
|||
if not hasattr(sys, 'version_info') or sys.version_info<(2, 3, 0, 'final', 0):
|
||||
raise SystemExit, "This program requires Python 2.3 or later."
|
||||
|
||||
# try to use psyco
|
||||
try:
|
||||
import psyco
|
||||
psyco.profile()
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
import getopt, re, os, pprint, socket, linkcheck
|
||||
# set default 30 seconds timeout
|
||||
socket.setdefaulttimeout(30)
|
||||
|
|
|
|||
Loading…
Reference in a new issue