return isinstance(t, str)
return isinstance(f, (bytes, str)) else: def isStringType(t): return isinstance(t, basestring) # noqa: F821
def isPath(f): return isinstance(f, basestring) # noqa: F821
# Checks if an object is a string, and that it points to a directory. return isPath(f) and os.path.isdir(f)
self.ex = ex
raise self.ex |