(self, element, argname=None, **kw)
coerce the given value to :class:`._truncated_label`.

        Existing :class:`._truncated_label` and
        :class:`._anonymous_label` objects are passed
        unchanged.
coerce the given value to :class:`._truncated_label`.
coerce the given value to : class : . _truncated_label .
def _literal_coercion(self, element, argname=None, **kw):
        """coerce the given value to :class:`._truncated_label`.

        Existing :class:`._truncated_label` and
        :class:`._anonymous_label` objects are passed
        unchanged.
        """

        if isinstance(element, elements._truncated_label):
            return element
        else:
            return elements._truncated_label(element)
def _literal_coercion ( self , element , argname = None , * * kw ) : if isinstance ( element , elements . _truncated_label ) : return element else : return elements . _truncated_label ( element )