def load(self, playerName=None):
if playerName: <EOL><INDENT>self.name = playerName <EOL><DEDENT>try:<EOL><INDENT>with open(self.filename, "<STR_LIT:rb>") as f:<EOL><INDENT>data = f.read()<EOL><DEDENT><DEDENT>except Exception:<EOL><INDENT>raise ValueError("<STR_LIT>"%(self.name, self.filename))<EOL><DEDENT>self.update(json.loads(data))<EOL>self._matches = [] <EOL>
retrieve the PlayerRecord settings from saved disk file