MCPcopy Create free account
hub / github.com/Duroktar/Wolf / python_2_unicode_compatible

Function python_2_unicode_compatible

scripts/six.py:851–866  ·  view source on GitHub ↗

A decorator that defines __unicode__ and __str__ methods under Python 2. Under Python 3 it does nothing. To support Python 2 and 3 with a single code base, define a __str__ method returning text and apply this decorator to the class.

(klass)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected