Skip to content

Conversation

ciscoqid
Copy link

@ciscoqid ciscoqid commented Oct 6, 2023

When using the prettify post-processor, this is emitted:

...rss2email-3.14-py3.6.egg/rss2email/post_process/prettify.py:85: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 85 of the file ...rss2email-3.14-py3.6.egg/rss2email/post_process/prettify.py. To get rid of this warning, pass the additional argument 'features="lxml"' to the BeautifulSoup constructor.

When using the prettify post-processor, this is emitted:

...rss2email-3.14-py3.6.egg/rss2email/post_process/prettify.py:85: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 85 of the file ...rss2email-3.14-py3.6.egg/rss2email/post_process/prettify.py. To get rid of this warning, pass the additional argument 'features="lxml"' to the BeautifulSoup constructor.
@auouymous
Copy link
Contributor

So we must require html5lib or lxml, or have it choose a parser and throw a warning?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants