File: nbdkit.py

package info (click to toggle)
nbdkit 1.46.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,504 kB
  • sloc: ansic: 63,658; sh: 18,717; makefile: 6,814; python: 1,848; cpp: 1,143; perl: 504; ml: 504; tcl: 62
file content (26 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env python3
"""
The real nbdkit module is only available when the Python interpreter
runs inside the nbdkit binary. To get unit tests to pass, we provide this
"stub" module that provides just the minimum attributes to do
unit testing.
"""

import logging

log = logging.getLogger(__name__)


FLAG_MAY_TRIM = 1


def parse_size(v):
    return int(v)


def debug(msg):
    log.debug(msg)


def set_error(err):
    pass