Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def render(self, text, **kwargs):
result = creoleparser.text2html(text)
if PY3K and isinstance(result, bytes):
result = result.decode('utf-8')
return result