Remove FixedSGMLParser: it is both useless and unused.

This commit is contained in:
Mikhail Korobov 2014-07-03 03:59:28 +06:00
parent 7316a37635
commit 19228c6584
1 changed files with 0 additions and 21 deletions

View File

@ -10,29 +10,8 @@ import re
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