From ff76f46d5a677c9a3213d84b4638fd506c4a5211 Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Mon, 15 Jun 2009 18:55:09 -0300 Subject: [PATCH] removed noisy comment and moved import to the top --- scrapy/command/cmdline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrapy/command/cmdline.py b/scrapy/command/cmdline.py index 4387a5694..535dc8085 100644 --- a/scrapy/command/cmdline.py +++ b/scrapy/command/cmdline.py @@ -3,6 +3,7 @@ from __future__ import with_statement import sys import os import optparse +import cProfile import scrapy from scrapy import log @@ -134,10 +135,9 @@ def execute_with_args(argv): cmd.process_options(args, opts) spiders.load() - log.start() # start logging + log.start() if opts.profile: log.msg("Profiling enabled. Analyze later with: python -m pstats %s" % opts.profile) - import cProfile loc = locals() p = cProfile.Profile() p.runctx('ret = cmd.run(args, opts)', globals(), loc)