예제 #1
0
def parse(raw):
    """ Takes raw login data and a user account, extracts useful information
        from the data and populates the account.
    """

    try:
        data = phpd.loads(raw)
    except ValueError, e:
        if e == "unexpected opcode":
            raise MasterServerError(108)
예제 #2
0
def parse_raw(raw):
    """ Takes raw serialised data and returns raw non-serialised data """
    return phpd.loads(raw)