(transfer, strict=0)
return 0
Given a string or numeric representation of a transfer, return the
    transfer code
Given a string or numeric representation of a transfer, return the
    transfer code
Given a string or numeric representation of a transfer return the transfer code
def lookupTransfer(transfer, strict=0):
    """Given a string or numeric representation of a transfer, return the
    transfer code"""
    if transfer is None:
        # Plain
        return 0
    if isinstance(transfer, IntType) and 0 <= transfer < len(Output.transfers):
        return transfer
    if isinstance(transfer, StringType):
        for i in range(len(Output.transfers)):
            if Output.transfers[i] == string.lower(transfer):
                return i
    if strict:
        raise ValueError("Unsupported transfer %s" % transfer)
    # Return default
    return 0
def lookupTransfer ( transfer , strict = 0 ) : if transfer is None : # Plain return 0 if isinstance ( transfer , IntType ) and 0 <= transfer < len ( Output . transfers ) : return transfer if isinstance ( transfer , StringType ) : for i in range ( len ( Output . transfers ) ) : if Output . transfers [ i ] == string . lower ( transfer ) : return i if strict : raise ValueError ( "Unsupported transfer %s" % transfer ) # Return default return 0