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

All Samples(20)  |  Call(10)  |  Derive(0)  |  Import(10)
Decode a string encoded with bencode, such as the contents of a
.torrent file

src/o/w/OwnTube-HEAD/videoportal/BitTornadoABC/BitTornado/BT1/Rerequester.py   OwnTube(Download)
from urllib import quote
from btformats import check_peers
from BitTornado.bencode import bdecode
from threading import Thread, Lock
from cStringIO import StringIO
 
            try:
                r = bdecode(data, sloppy=1)
                check_peers(r)
            except ValueError, e:

src/f/r/FriendlyTorrent-HEAD/src/tornado/BitTornado/BT1/Rerequester.py   FriendlyTorrent(Download)
from socket import gethostbyname
from btformats import check_peers
from BitTornado.bencode import bdecode
from threading import Thread, Lock
from cStringIO import StringIO
 
            try:
                r = bdecode(data, sloppy=1)
                check_peers(r)
            except ValueError, e:

src/h/e/Herd-HEAD/BitTornado/BT1/Rerequester.py   Herd(Download)
from socket import gethostbyname
from btformats import check_peers
from BitTornado.bencode import bdecode
from threading import Thread, Lock
from cStringIO import StringIO
 
            try:
                r = bdecode(data, sloppy=1)
                check_peers(r)
            except ValueError, e:

src/b/i/BitTornado-HEAD/BitTornado/BT1/Rerequester.py   BitTornado(Download)
import urllib
import hashlib
from BitTornado.zurllib import urlopen
from BitTornado.Info import check_type
from BitTornado.bencode import bdecode
 
            try:
                r = bdecode(data, sloppy=1)
                check_peers(r)
            except ValueError as e:

src/s/w/swarm-HEAD/BitTornado/BT1/Rerequester.py   swarm(Download)
from socket import gethostbyname
from btformats import check_peers
from BitTornado.bencode import bdecode
from threading import Thread, Lock
from cStringIO import StringIO
 
            try:
                r = bdecode(data, sloppy=1)
                check_peers(r)
            except ValueError, e:

src/o/w/OwnTube-HEAD/videoportal/BitTornadoABC/BitTornado/BT1/track.py   OwnTube(Download)
from BitTornado.torrentlistparse import parsetorrentlist
from threading import Event, Thread
from BitTornado.bencode import bencode, bdecode, Bencached
from BitTornado.zurllib import urlopen
from urllib import quote, unquote
                ds = h.read()
                h.close()
                tempstate = bdecode(ds)
                if not tempstate.has_key('peers'):
                    tempstate = {'peers': tempstate}

src/f/r/FriendlyTorrent-HEAD/src/tornado/BitTornado/BT1/track.py   FriendlyTorrent(Download)
from BitTornado.torrentlistparse import parsetorrentlist
from threading import Event, Thread
from BitTornado.bencode import bencode, bdecode, Bencached
from BitTornado.zurllib import urlopen, quote, unquote
from Filter import Filter
                ds = h.read()
                h.close()
                tempstate = bdecode(ds)
                if not tempstate.has_key('peers'):
                    tempstate = {'peers': tempstate}

src/h/e/Herd-HEAD/BitTornado/BT1/track.py   Herd(Download)
from BitTornado.torrentlistparse import parsetorrentlist
from threading import Event, Thread
from BitTornado.bencode import bencode, bdecode, Bencached
from BitTornado.zurllib import urlopen, quote, unquote
from Filter import Filter
                ds = h.read()
                h.close()
                tempstate = bdecode(ds)
                if not tempstate.has_key('peers'):
                    tempstate = {'peers': tempstate}

src/b/i/BitTornado-HEAD/BitTornado/BT1/track.py   BitTornado(Download)
from T2T import T2TList
from BitTornado.torrentlistparse import parsetorrentlist
from BitTornado.bencode import bencode, bdecode, Bencached
from BitTornado.zurllib import urlopen
from Filter import Filter
                with open(self.dfile, 'rb') as h:
                    ds = h.read()
                tempstate = bdecode(ds)
                if 'peers' not in tempstate:
                    tempstate = {'peers': tempstate}

src/s/w/swarm-HEAD/BitTornado/BT1/track.py   swarm(Download)
from BitTornado.torrentlistparse import parsetorrentlist
from threading import Event, Thread
from BitTornado.bencode import bencode, bdecode, Bencached
from BitTornado.zurllib import urlopen, quote, unquote
from Filter import Filter
                ds = h.read()
                h.close()
                tempstate = bdecode(ds)
                if not tempstate.has_key('peers'):
                    tempstate = {'peers': tempstate}