Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

removed unused module: scrapy.xpath.types

Pablo Hoffmandfa4a4846ce4
diff --git a/scrapy/xpath/__init__.py b/scrapy/xpath/__init__.py
index 44a60c3eb..611b8f97e 100644
--- a/scrapy/xpath/__init__.py
+++ b/scrapy/xpath/__init__.py
@@ -1,13 +1,9 @@
"""
-The scrapy.xpath module provides useful classes for parsing HTML and XML
+The scrapy.xpath module provides useful classes for selecting HTML and XML
documents using XPath. It requires libxml2 and its python bindings.
This parent module exports the classes most commonly used when building
spiders, for convenience.
-
-* XPath - a simple class to represent a XPath expression
-* XPathSelector - to extract data using XPaths (parses the entire response)
"""
-from scrapy.xpath.types import XPath
from scrapy.xpath.selector import XPathSelector, XmlXPathSelector, HtmlXPathSelector
diff --git a/scrapy/xpath/types.py b/scrapy/xpath/types.py
deleted file mode 100644
index 56d2efe96..000000000
--- a/scrapy/xpath/types.py
+++ /dev/null
@@ -1,11 +0,0 @@
-class XPath(object):
- """A XPath expression"""
-
- def __init__(self, xpath_expr):
- self.expr = xpath_expr
-
- def __repr__(self):
- return "XPath(%s)" % repr(self.expr)
-
- def __str__(self):
- return self.expr