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)
def parse_raw(raw): """ Takes raw serialised data and returns raw non-serialised data """ return phpd.loads(raw)