mirror of https://github.com/scrapy/scrapy.git
Remove FixedSGMLParser: it is both useless and unused.
This commit is contained in:
parent
7316a37635
commit
19228c6584
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue