fix imports

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2993 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-12-19 16:21:47 +00:00
parent a24fd65943
commit 51f48790aa

View file

@ -20,7 +20,6 @@ Check HTML pages for broken links.
"""
import sys
import locale
import codecs
import re
import os
@ -191,6 +190,7 @@ def viewprof ():
print >>sys.stderr, \
_("Please run linkchecker with --profile to generate it.")
sys.exit(1)
import pstats
stats = pstats.Stats(_profile)
stats.strip_dirs().sort_stats("cumulative").print_stats(100)
sys.exit(0)