Scrapy, a fast high-level web crawling & scraping framework for Python.
sorted out import order and removed unused imports from previous changeset
Pablo Hoffman3e7e321a07b3
diff --git a/scrapy/command/commands/genspider.py b/scrapy/command/commands/genspider.pyindex 048eec2b4..218adb67e 100644--- a/scrapy/command/commands/genspider.py+++ b/scrapy/command/commands/genspider.py@@ -1,8 +1,8 @@+import sysimport shutilimport stringfrom os import listdirfrom os.path import join, dirname, abspath, exists-import sysimport scrapyfrom scrapy.spider import spidersdiff --git a/scrapy/command/commands/startproject.py b/scrapy/command/commands/startproject.pyindex 6b9664326..b30b91ce4 100644--- a/scrapy/command/commands/startproject.py+++ b/scrapy/command/commands/startproject.py@@ -1,9 +1,9 @@#!/usr/bin/env python+import sysimport osimport stringimport re-import sysimport scrapyfrom scrapy.command import ScrapyCommanddiff --git a/scrapy/tests/test_scrapy_ctl.py b/scrapy/tests/test_scrapy_ctl.pyindex f8177143b..db5360b42 100644--- a/scrapy/tests/test_scrapy_ctl.py+++ b/scrapy/tests/test_scrapy_ctl.py@@ -1,16 +1,13 @@+import sysimport os-from os.path import exists, joinimport subprocess+from os.path import exists, joinfrom shutil import rmtree-import sysfrom tempfile import mkdtemp-from unittest import TestCase--import scrapy-from scrapy.conf import settings+import unittest-class ProjectTest(TestCase):+class ProjectTest(unittest.TestCase):project_name = 'testproject'def setUp(self):@@ -25,7 +22,7 @@ class ProjectTest(TestCase):args = [sys.executable, '-m', 'scrapy.command.cmdline']args.extend(new_args)- env = self.env if hasattr(self, 'env') else os.environ+ env = getattr(self, 'env', os.environ)return subprocess.call(args, stdout=out, stderr=out, cwd=self.cwd, \env=env, **kwargs)@@ -115,3 +112,5 @@ class CsvFeedGenspiderTest(BaseGenspiderTest):class XMLFeedGenspiderTest(BaseGenspiderTest):template = 'xmlfeed'+if __name__ == '__main__':+ unittest.main()