Logo Search packages:      
Sourcecode: calibre version File versions

def calibre::utils::pyparsing::ParserElement::__ror__ (   self,
  other 
) [inherited]

Implementation of | operator when left operand is not a ParserElement

Definition at line 1237 of file pyparsing.py.

01237                              :
        """Implementation of | operator when left operand is not a ParserElement"""
        if isinstance( other, basestring ):
            other = Literal( other )
        if not isinstance( other, ParserElement ):
            warnings.warn("Cannot combine element of type %s with ParserElement" % type(other),
                    SyntaxWarning, stacklevel=2)
            return None
        return other | self


Generated by  Doxygen 1.6.0   Back to index