How to use the markupsafe._compat.string_types function in MarkupSafe

To help you get started, we’ve selected a few MarkupSafe examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github splunk / splunk-ref-pas-test / pas_simulated_users_addon / user-api / lib / markupsafe / __init__.py View on Github external
def _escape_argspec(obj, iterable, escape):
    """Helper for various string-wrapped functions."""
    for key, value in iterable:
        if hasattr(value, '__html__') or isinstance(value, string_types):
            obj[key] = escape(value)
    return obj
github libfirm / libfirm / scripts / markupsafe / __init__.py View on Github external
def _escape_argspec(obj, iterable, escape):
    """Helper for various string-wrapped functions."""
    for key, value in iterable:
        if hasattr(value, '__html__') or isinstance(value, string_types):
            obj[key] = escape(value)
    return obj
github trailofbits / cb-multios / cqe-challenges / NRFIN_00007 / support / mixcodegen / markupsafe / __init__.py View on Github external
def _escape_argspec(obj, iterable, escape):
    """Helper for various string-wrapped functions."""
    for key, value in iterable:
        if hasattr(value, '__html__') or isinstance(value, string_types):
            obj[key] = escape(value)
    return obj
github alangpierce / appengine-python3 / lib / markupsafe-0.23 / markupsafe / __init__.py View on Github external
def _escape_argspec(obj, iterable, escape):
    """Helper for various string-wrapped functions."""
    for key, value in iterable:
        if hasattr(value, '__html__') or isinstance(value, string_types):
            obj[key] = escape(value)
    return obj
github Jenyay / outwiker / plugins / snippets / snippets / libs / markupsafe / __init__.py View on Github external
def __radd__(self, other):
        if hasattr(other, '__html__') or isinstance(other, string_types):
            return self.escape(other).__add__(self)
        return NotImplemented
github commaai / openpilot / markupsafe / __init__.py View on Github external
def _escape_argspec(obj, iterable, escape):
    """Helper for various string-wrapped functions."""
    for key, value in iterable:
        if hasattr(value, '__html__') or isinstance(value, string_types):
            obj[key] = escape(value)
    return obj
github wwqgtxx / wwqLyParse / wwqLyParse / lib / flask_lib / markupsafe / __init__.py View on Github external
def _escape_argspec(obj, iterable, escape):
    """Helper for various string-wrapped functions."""
    for key, value in iterable:
        if hasattr(value, '__html__') or isinstance(value, string_types):
            obj[key] = escape(value)
    return obj