Logo Search packages:      
Sourcecode: balazar3 version File versions  Download package

def balazar3-0.1::tofu::PlayerID::loads (   Class,
  s 
)

PlayerID.loads(file_object) -> PlayerID

This *class method* loads a PlayerID from a file object.
The PlayerID should have been saved with PlayerID.dumps.

Definition at line 833 of file __init__.py.

00833                      :
    """PlayerID.loads(file_object) -> PlayerID

This *class method* loads a PlayerID from a file object.
The PlayerID should have been saved with PlayerID.dumps."""
    nb = int(s.readline())
    filename = s.read(nb)
    nb = int(s.readline())
    password = s.read(nb)
    return PlayerID(filename, password)

LOAD_PLAYER_ID = PlayerID.loads


Generated by  Doxygen 1.6.0   Back to index