Package DebTorrent :: Package BT1 :: Module StorageWrapper :: Class fakeflag
[hide private]
[frames] | no frames]

Class fakeflag

source code

A fake flag to use if one is not supplied.

Instance Methods [hide private]
 
__init__(self, state=True)
Set the new flag.
source code
 
wait(self)
Do nothing.
source code
boolean
isSet(self)
Check if the current state is set.
source code
Instance Variables [hide private]
boolean state
the current state of the flag
Method Details [hide private]

__init__(self, state=True)
(Constructor)

source code 
Set the new flag.
Parameters:
  • state (boolean) - the initial state of the flag

isSet(self)

source code 
Check if the current state is set.
Returns: boolean
whether the flag is set