def prepareIntArgument(self, valueToPrepare):
    ' Internal processing function '
    ' This converts many types of values to an integer '
    if (valueToPrepare == None):
        return None
    if (type(valueToPrepare) == str):
        return int(valueToPrepare.encode('utf-8'))
    elif (type(valueToPrepare) == bytearray):
        return int(valueToPrepare)
    elif (type(valueToPrepare) == bytes):
        return int(valueToPrepare)
    return valueToPrepare
Internal processing function
def prepareIntArgument(self, valueToPrepare):
    '  '
    ' This converts many types of values to an integer '
    if (valueToPrepare == None):
        return None
    if (type(valueToPrepare) == str):
        return int(valueToPrepare.encode('utf-8'))
    elif (type(valueToPrepare) == bytearray):
        return int(valueToPrepare)
    elif (type(valueToPrepare) == bytes):
        return int(valueToPrepare)
    return valueToPrepare