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

All Samples(34)  |  Call(21)  |  Derive(0)  |  Import(13)

src/n/o/NOT_UPDATED_Sick-Beard-Dutch-HEAD/lib/bencode/bencode.py   NOT_UPDATED_Sick-Beard-Dutch(Download)
# Written by Petru Paler
 
from BTL import BTFailure
 
 
def bdecode(x):
    try:
        r, l = decode_func[x[0]](x, 0)
    except (IndexError, KeyError, ValueError):
        raise BTFailure("not a valid bencoded string")

src/b/a/batter-HEAD/batter/torrents/fields.py   batter(Download)
from BTL import BTFailure
from django import forms
from django.core.exceptions import ValidationError
 
from .models import Torrent

src/l/i/lightdht-HEAD/krpcserver.py   lightdht(Download)
 
from bencode import bencode, bdecode
from BTL import BTFailure
 
# Logging is disabled by default.

Previous  1 | 2