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

All Samples(8)  |  Call(3)  |  Derive(0)  |  Import(5)

src/b/a/babelsubs-HEAD/babelsubs/storage.py   babelsubs(Download)
    def _get_tick_rate(self):
        try:
            tt = find_els(self._ttml, '/tt/body/div')[0]
        except IndexError as e:
            from babelsubs.parsers.base import SubtitleParserError
            raise SubtitleParserError(
                "No valid root elements found, we'll accept 'tt, body and div",

src/b/a/babelsubs-HEAD/babelsubs/parsers/youtube.py   babelsubs(Download)
from lxml import etree
from babelsubs.utils import unescape_html
from babelsubs.parsers.base import BaseTextParser, register, SubtitleParserError
from babelsubs.storage import SubtitleSet
 
                    raise ValueError("No subs")
            except Exception as e:
                raise SubtitleParserError(original_error=e)
 
 

src/b/a/babelsubs-HEAD/babelsubs/parsers/json_parser.py   babelsubs(Download)
import json
from babelsubs.storage import SubtitleSet
from babelsubs.parsers.base import (
    BaseTextParser, register, SubtitleParserError
)
                data = json.loads(self.input_string)
            except ValueError:
                raise SubtitleParserError("Invalid JSON data provided.")
 
            # Sort by the ``position`` key

src/b/a/babelsubs-HEAD/babelsubs/__init__.py   babelsubs(Download)
import os
import babelsubs.parsers as parsers
from babelsubs.parsers.base import ParserList, SubtitleParserError
from babelsubs.generators.base import GeneratorList
import babelsubs.generators as generators

src/b/a/babelsubs-HEAD/babelsubs/tests/test_dfxp.py   babelsubs(Download)
from babelsubs.generators.dfxp import DFXPGenerator
from babelsubs.generators.srt import SRTGenerator
from babelsubs.parsers.base import SubtitleParserError
from babelsubs.storage import  (
    SubtitleSet, get_attr, TTML_NAMESPACE_URI, _cleanup_legacy_namespace,