Scrapy, a fast high-level web crawling & scraping framework for Python.
removed noisy comment and moved import to the top
Pablo Hoffmanff76f46d5a67
diff --git a/scrapy/command/cmdline.py b/scrapy/command/cmdline.pyindex 4387a5694..535dc8085 100644--- a/scrapy/command/cmdline.py+++ b/scrapy/command/cmdline.py@@ -3,6 +3,7 @@ from __future__ import with_statementimport sysimport osimport optparse+import cProfileimport scrapyfrom 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 cProfileloc = locals()p = cProfile.Profile()p.runctx('ret = cmd.run(args, opts)', globals(), loc)