def istext(text):
    """`True` for text (`unicode` and `str`), but `False` for `Markup`."""
    from genshi.core import Markup
    return isinstance(text, basestring) or not isinstance(text, Markup)
dataset/ETHPy150Open edgewall/trac/trac/util/presentation.py/istext/operator `and` -> `or`