Lines Matching refs:str
494 if isinstance(a, str):
495 # Force-cast str subclasses to str (issue #21127)
496 parts.append(str(a))
499 "argument should be a str object or an os.PathLike "
500 "object returning str, not %r"
547 return str(self)
553 return str(self).replace(f.sep, '/')
732 .format(str(self), str(formatted)))
1074 if not isinstance(data, str):
1075 raise TypeError('data must be str, not %s' %