Python bs4.ProcessingInstruction() Examples

The following are 10 code examples of bs4.ProcessingInstruction(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module bs4 , or try the search function .
Example #1
Source File: css_match.py    From soupsieve with MIT License 5 votes vote down vote up
def is_processing_instruction(obj):  # pragma: no cover
        """Is processing instruction."""
        return isinstance(obj, bs4.ProcessingInstruction) 
Example #2
Source File: css_match.py    From soupsieve with MIT License 5 votes vote down vote up
def is_special_string(obj):
        """Is special string."""
        return isinstance(obj, (bs4.Comment, bs4.Declaration, bs4.CData, bs4.ProcessingInstruction, bs4.Doctype)) 
Example #3
Source File: css_match.py    From plugin.git.browser with GNU General Public License v3.0 5 votes vote down vote up
def is_processing_instruction(obj):  # pragma: no cover
        """Is processing instruction."""

        import bs4
        return isinstance(obj, bs4.ProcessingInstruction) 
Example #4
Source File: css_match.py    From plugin.git.browser with GNU General Public License v3.0 5 votes vote down vote up
def is_special_string(obj):
        """Is special string."""

        import bs4
        return isinstance(obj, (bs4.Comment, bs4.Declaration, bs4.CData, bs4.ProcessingInstruction)) 
Example #5
Source File: css_match.py    From bazarr with GNU General Public License v3.0 5 votes vote down vote up
def is_processing_instruction(obj):  # pragma: no cover
        """Is processing instruction."""

        import bs4
        return isinstance(obj, bs4.ProcessingInstruction) 
Example #6
Source File: css_match.py    From bazarr with GNU General Public License v3.0 5 votes vote down vote up
def is_special_string(obj):
        """Is special string."""

        import bs4
        return isinstance(obj, (bs4.Comment, bs4.Declaration, bs4.CData, bs4.ProcessingInstruction, bs4.Doctype)) 
Example #7
Source File: css_match.py    From Tautulli with GNU General Public License v3.0 5 votes vote down vote up
def is_processing_instruction(obj):  # pragma: no cover
        """Is processing instruction."""

        import bs4
        return isinstance(obj, bs4.ProcessingInstruction) 
Example #8
Source File: css_match.py    From Tautulli with GNU General Public License v3.0 5 votes vote down vote up
def is_special_string(obj):
        """Is special string."""

        import bs4
        return isinstance(obj, (bs4.Comment, bs4.Declaration, bs4.CData, bs4.ProcessingInstruction, bs4.Doctype)) 
Example #9
Source File: css_match.py    From V1EngineeringInc-Docs with Creative Commons Attribution Share Alike 4.0 International 5 votes vote down vote up
def is_processing_instruction(obj):  # pragma: no cover
        """Is processing instruction."""

        import bs4
        return isinstance(obj, bs4.ProcessingInstruction) 
Example #10
Source File: css_match.py    From V1EngineeringInc-Docs with Creative Commons Attribution Share Alike 4.0 International 4 votes vote down vote up
def is_special_string(obj):
        """Is special string."""

        import bs4
        return isinstance(obj, (bs4.Comment, bs4.Declaration, bs4.CData, bs4.ProcessingInstruction, bs4.Doctype))