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

Module StorageWrapper

source code

Manage the storage of data at the piece level.

Classes [hide private]
  Olist
A list that will be popped in order.
  fakeflag
A fake flag to use if one is not supplied.
  StorageWrapper
Manage the storage of data at the piece level.
Functions [hide private]
 
dummy_status(fractionDone=None, activity=None)
Dummy function to do nothing with the status info.
source code
Variables [hide private]
logging.Logger logger = logging.getLogger('DebTorrent.BT1.StorageWrapper')
the logger to send all log messages to for this module
float STATS_INTERVAL = 0.2
how often to print a status update during an old-style init

Imports: bitfield.Bitfield, sha.sha, clock.clock, random.randrange, logging, bisect.insort