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

All Samples(9)  |  Call(4)  |  Derive(0)  |  Import(5)

        def check_message(message):
    if type(message) != DictType:
        raise ValueError
    check_info(message.get('info'))
    if type(message.get('announce')) != StringType:
        raise ValueError
        


src/o/w/OwnTube-HEAD/videoportal/BitTornadoABC/BitTornado/download_bt1.py   OwnTube(Download)
from zurllib import urlopen
from urlparse import urlparse
from BT1.btformats import check_message
from BT1.Choker import Choker
from BT1.Storage import Storage
            errorfunc("warning: bad data in responsefile")
            response = bdecode(response, sloppy=1)
        check_message(response)
    except ValueError, e:
        errorfunc("got bad file info - " + str(e))

src/f/r/FriendlyTorrent-HEAD/src/tornado/BitTornado/download_bt1.py   FriendlyTorrent(Download)
from zurllib import urlopen
from urlparse import urlparse
from BT1.btformats import check_message
from BT1.Choker import Choker
from BT1.Storage import Storage
            errorfunc("warning: bad data in responsefile")
            response = bdecode(response, sloppy=1)
        check_message(response)
    except ValueError, e:
        errorfunc("got bad file info - " + str(e))

src/h/e/Herd-HEAD/BitTornado/download_bt1.py   Herd(Download)
from zurllib import urlopen
from urlparse import urlparse
from BT1.btformats import check_message
from BT1.Choker import Choker
from BT1.Storage import Storage
            errorfunc("warning: bad data in responsefile")
            response = bdecode(response, sloppy=1)
        check_message(response)
    except ValueError, e:
        errorfunc("got bad file info - " + str(e))

src/s/w/swarm-HEAD/BitTornado/download_bt1.py   swarm(Download)
from zurllib import urlopen
from urlparse import urlparse
from BT1.btformats import check_message
from BT1.Choker import Choker
from BT1.Storage import Storage
            errorfunc("warning: bad data in responsefile")
            response = bdecode(response, sloppy=1)
        check_message(response)
    except ValueError, e:
        errorfunc("got bad file info - " + str(e))

src/s/w/swiftarm-HEAD/tribler/Tribler/Core/BitTornado/download_bt1.py   swiftarm(Download)
from zurllib import urlopen
from urlparse import urlparse
from BT1.btformats import check_message
from BT1.Choker import Choker
from BT1.Storage import Storage