From 19228c6584f791a6d3fda681fe271d1176859a46 Mon Sep 17 00:00:00 2001 From: Mikhail Korobov Date: Thu, 3 Jul 2014 03:59:28 +0600 Subject: [PATCH] Remove FixedSGMLParser: it is both useless and unused. --- scrapy/utils/python.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/scrapy/utils/python.py b/scrapy/utils/python.py index 8c186fa8a39..7b09b6afe63 100644 --- a/scrapy/utils/python.py +++ b/scrapy/utils/python.py @@ -10,29 +10,8 @@ import inspect import weakref import errno -import warnings from functools import partial, wraps -import six - -from scrapy.exceptions import ScrapyDeprecationWarning - - -if six.PY2: - from sgmllib import SGMLParser - - class FixedSGMLParser(SGMLParser): - """ - Warning: this class is deprecated and will be removed in future - releases. Please use standard `sgmllib.SGMLParser`. - """ - def __init__(self, *args, **kwargs): - warnings.warn( - "FixedSGMLParser is deprecated and will be removed in future releases.", - ScrapyDeprecationWarning - ) - SGMLParser.__init__(self, *args, **kwargs) - def flatten(x): """flatten(sequence) -> list