@classmethod
    def validate_string(cls, value):
        if isinstance(value, str):
            return value
        try:
            if isinstance(value, basestring):
                return value
        except __HOLE__:  # means we're on Python 3
            pass
        raise TypeError(
            "value must be a string, got %s" % type(value)
        )
dataset/ETHPy150Open python-openxml/python-docx/docx/oxml/simpletypes.py/BaseSimpleType.validate_string