Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/k/a/kamaelia-HEAD/Sketches/RJL/bittorrent/BitTorrent/BitTorrent/ConvertedMetainfo.py   kamaelia(Download)
        self.comment = None
 
        btformats.check_message(metainfo, check_paths=False)
        info = metainfo['info']
        if info.has_key('length'):

src/k/a/kamaelia-HEAD/Sketches/RJL/bittorrent/BitTorrent/BitTorrent/parsedir.py   kamaelia(Download)
 
from BitTorrent.bencode import bencode, bdecode
from BitTorrent.btformats import check_message
 
NOISY = False
            ff = open(p, 'rb')
            d = bdecode(ff.read())
            check_message(d)
            h = sha(bencode(d['info'])).digest()
            new_file[1] = h

src/k/a/kamaelia-HEAD/Sketches/RJL/bittorrent/BitTorrent/BitTorrent/download.py   kamaelia(Download)
from math import sqrt
 
from BitTorrent.btformats import check_message
from BitTorrent.Choker import Choker
from BitTorrent.Storage import Storage, FilePool