Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Static Public Attributes | List of all members
bs4._warnings.AttributeResemblesVariableWarning Class Reference
Inheritance diagram for bs4._warnings.AttributeResemblesVariableWarning:
Inheritance graph
[legend]
Collaboration diagram for bs4._warnings.AttributeResemblesVariableWarning:
Collaboration graph
[legend]

Static Public Attributes

str MESSAGE
 

Detailed Description

The warning issued when Beautiful Soup suspects a provided
attribute name may actually be the misspelled name of a Beautiful
Soup variable. Generally speaking, this is only used in cases like
"_class" where it's very unlikely the user would be referencing an
XML attribute with that name.

Member Data Documentation

◆ MESSAGE

str bs4._warnings.AttributeResemblesVariableWarning.MESSAGE
static
Initial value:
= """%(original)r is an unusual attribute name and is a common misspelling for %(autocorrect)r.
If you meant %(autocorrect)r, change your code to use it, and this warning will go away.
If you really did mean to check the %(original)r attribute, this warning is spurious and can be filtered. To make it go away, run this code before creating your BeautifulSoup object:
from bs4 import AttributeResemblesVariableWarning
import warnings
warnings.filterwarnings("ignore", category=AttributeResemblesVariableWarning)
"""

The documentation for this class was generated from the following file: