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