def _matchingString(constantString, inputString):
    if isinstance(constantString, bytes):
        otherType = constantString.decode("ascii")
    else:
        otherType = constantString.encode("ascii")
    if type(constantString) == type(inputString):
        return constantString
    else:
        return otherType
Some functions, such as C{os.path.join}, operate on string arguments which
dataset/ETHPy150Open twisted/twisted/twisted/python/compat.py/_matchingString