Skip to content

Commit

Permalink
Remove FixedSGMLParser: it is both useless and unused.
Browse files Browse the repository at this point in the history
  • Loading branch information
kmike committed Jul 2, 2014
1 parent 7316a37 commit 19228c6
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions scrapy/utils/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 19228c6

Please sign in to comment.