Did I find the right examples for you? yes no

All Samples(12)  |  Call(6)  |  Derive(0)  |  Import(6)

src/k/a/ka-lite-HEAD/python-packages/youtube_dl/YoutubeDL.py   ka-lite(Download)
    import ctypes
 
from .utils import (
    compat_cookiejar,
    compat_http_client,
                self.to_screen('[info] Writing video description metadata as JSON to: ' + infofn)
                try:
                    write_json_file(info_dict, encodeFilename(infofn))
                except (OSError, IOError):
                    self.report_error('Cannot write metadata to JSON file ' + infofn)

src/y/o/youtube_dl-2014.04.30.1/youtube_dl/YoutubeDL.py   youtube_dl(Download)
    import ctypes
 
from .utils import (
    compat_cookiejar,
    compat_http_client,
                self.to_screen('[info] Writing video description metadata as JSON to: ' + infofn)
                try:
                    write_json_file(info_dict, encodeFilename(infofn))
                except (OSError, IOError):
                    self.report_error('Cannot write metadata to JSON file ' + infofn)

src/y/o/youtube-dl-HEAD/youtube_dl/YoutubeDL.py   youtube-dl(Download)
    import ctypes
 
from .utils import (
    compat_cookiejar,
    compat_http_client,
                self.to_screen('[info] Writing video description metadata as JSON to: ' + infofn)
                try:
                    write_json_file(info_dict, encodeFilename(infofn))
                except (OSError, IOError):
                    self.report_error('Cannot write metadata to JSON file ' + infofn)

src/k/a/ka-lite-HEAD/python-packages/youtube_dl/extractor/youtube.py   ka-lite(Download)
from .common import InfoExtractor, SearchInfoExtractor
from .subtitles import SubtitlesInfoExtractor
from ..utils import (
    compat_chr,
    compat_parse_qs,
                    if ose.errno != errno.EEXIST:
                        raise
                write_json_file(cache_spec, cache_fn)
            except Exception:
                tb = traceback.format_exc()

src/y/o/youtube_dl-2014.04.30.1/youtube_dl/extractor/youtube.py   youtube_dl(Download)
from .subtitles import SubtitlesInfoExtractor
from ..jsinterp import JSInterpreter
from ..utils import (
    compat_chr,
    compat_parse_qs,
                    if ose.errno != errno.EEXIST:
                        raise
                write_json_file(cache_spec, cache_fn)
            except Exception:
                tb = traceback.format_exc()

src/y/o/youtube-dl-HEAD/youtube_dl/extractor/youtube.py   youtube-dl(Download)
from .subtitles import SubtitlesInfoExtractor
from ..jsinterp import JSInterpreter
from ..utils import (
    compat_chr,
    compat_parse_qs,
                    if ose.errno != errno.EEXIST:
                        raise
                write_json_file(cache_spec, cache_fn)
            except Exception:
                tb = traceback.format_exc()