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

All Samples(56)  |  Call(28)  |  Derive(0)  |  Import(28)

        def bdecode(x):
    try:
        r, l = decode_func[x[0]](x, 0)
    except (IndexError, KeyError):
        raise ValueError
    if l != len(x):
        raise ValueError
    return r
        


src/k/a/kamaelia-HEAD/Sketches/MPS/BugReports/FixTests/Kamaelia/Examples/OpenGL/TorrentOpenGLGUI/TorrentOpenGLGUI.py   kamaelia(Download)
from Kamaelia.Protocol.Torrent.TorrentIPC import *
 
from BitTorrent.bencode import bdecode
 
import random
    def showInfo(self, torrent):
        decoded = bdecode(torrent)
 
        info = decoded.get("info", None)
        if info is not None:

src/k/a/kamaelia-HEAD/Sketches/CL/Topology3D/THF/Examples/TorrentOpenGLGUI/TorrentOpenGLGUI.py   kamaelia(Download)
from Kamaelia.Community.RJL.Kamaelia.Protocol.Torrent.TorrentIPC import *
 
from BitTorrent.bencode import bdecode
 
import random
    def showInfo(self, torrent):
        decoded = bdecode(torrent)
 
        info = decoded.get("info", None)
        if info is not None:

src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Examples/OpenGL/TorrentOpenGLGUI/TorrentOpenGLGUI.py   kamaelia(Download)
from Kamaelia.Protocol.Torrent.TorrentIPC import *
 
from BitTorrent.bencode import bdecode
 
import random
    def showInfo(self, torrent):
        decoded = bdecode(torrent)
 
        info = decoded.get("info", None)
        if info is not None:

src/k/a/kamaelia-HEAD/Sketches/THF/Packages/Examples/TorrentOpenGLGUI/TorrentOpenGLGUI.py   kamaelia(Download)
from Kamaelia.Community.RJL.Kamaelia.Protocol.Torrent.TorrentIPC import *
 
from BitTorrent.bencode import bdecode
 
import random
    def showInfo(self, torrent):
        decoded = bdecode(torrent)
 
        info = decoded.get("info", None)
        if info is not None:

src/k/a/Kamaelia-0.6.0/Examples/SoC2006/THF/TorrentOpenGLGUI/TorrentOpenGLGUI.py   Kamaelia(Download)
from Kamaelia.Protocol.Torrent.TorrentIPC import *
 
from BitTorrent.bencode import bdecode
 
import random
    def showInfo(self, torrent):
        decoded = bdecode(torrent)
 
        info = decoded.get("info", None)
        if info is not None:

src/k/a/kamaelia-HEAD/Sketches/RJL/Packages/Kamaelia/Community/RJL/Kamaelia/Protocol/Torrent/TorrentClient.py   kamaelia(Download)
        """
 
        from BitTorrent.bencode import bdecode, bencode
        metainfo = None
        try:
            b = bdecode(data)

src/k/a/kamaelia-HEAD/Sketches/RJL/Kamaelia/Community/RJL/Kamaelia/Protocol/Torrent/TorrentClient.py   kamaelia(Download)
        """
 
        from BitTorrent.bencode import bdecode, bencode
        metainfo = None
        try:
            b = bdecode(data)

src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Kamaelia/Protocol/Torrent/TorrentClient.py   kamaelia(Download)
        """
 
        from BitTorrent.bencode import bdecode, bencode
        metainfo = None
        try:
            b = bdecode(data)

src/k/a/kamaelia-HEAD/Sketches/RJL/bittorrent/BitTorrent/changetracker-console.py   kamaelia(Download)
from os.path import basename
from sys import argv, exit
from BitTorrent.bencode import bencode, bdecode
 
if len(argv) < 3:
for f in argv[2:]:
    h = open(f, 'rb')
    metainfo = bdecode(h.read())
    h.close()
    if metainfo['announce'] != argv[1]:

src/k/a/kamaelia-HEAD/Sketches/RJL/Torrent/TorrentClient.py   kamaelia(Download)
        """
 
        from BitTorrent.bencode import bdecode, bencode
        metainfo = None
        try:
            b = bdecode(data)

  1 | 2 | 3  Next