You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So in our codebase, sgmllib has been used in web/init.py , feed/feedparser.py and soup/BeautifulSoup.py.
I believe we just want to remove sgmllib from our web package right?
Other two are third party packages so not sure.
I think sgmllib is only used in pattern to create an HtmlParser (in web/__init__.py), python 3 ships with one of these in html.parser (perhaps this can "just work" or needs a small api change) as you say. That is, just keep sgmlib for python 2.
I ripped out feedparser and soup as deps which makes it easier for pattern going forward in the pattern3 branch (specifically we don't need to care about fixing feedparser/soup with sgmlib, they've already done it).
I think sgmllib is only used in pattern to create an HtmlParser (in web/init.py), python 3 ships with one of these in html.parser (perhaps this can "just work" or needs a small api change) as you say.
For future reference: This is exactly what I ended up doing (see commit da00fff), seems to work fine.
Activity
smonami commentedon Aug 16, 2013
So in our codebase, sgmllib has been used in web/init.py , feed/feedparser.py and soup/BeautifulSoup.py.
I believe we just want to remove sgmllib from our web package right?
Other two are third party packages so not sure.
hayd commentedon Nov 1, 2014
I think sgmllib is only used in pattern to create an HtmlParser (in
web/__init__.py), python 3 ships with one of these in html.parser (perhaps this can "just work" or needs a small api change) as you say. That is, just keep sgmlib for python 2.I ripped out feedparser and soup as deps which makes it easier for pattern going forward in the pattern3 branch (specifically we don't need to care about fixing feedparser/soup with sgmlib, they've already done it).
Merge pull request clips#4 from hayd/stage1
markus-beuckelmann commentedon Aug 14, 2017
For future reference: This is exactly what I ended up doing (see commit da00fff), seems to work fine.