server/crypto.c: Improve error messages in crypto_send
[nbdkit.git] / plugins / S3 / nbdkit.py
blobfe7995a1d3b31afe09ac4937d277cd533c51ff31
1 #!/usr/bin/env python3
2 """
3 The real nbdkit module is only available when the Python interpreter
4 runs inside the nbdkit binary. To get unit tests to pass, we provide this
5 "stub" module that provides just the minimum attributes to do
6 unit testing.
7 """
9 import logging
11 log = logging.getLogger(__name__)
14 FLAG_MAY_TRIM = 1
17 def parse_size(v):
18 return int(v)
21 def debug(msg):
22 log.debug(msg)
25 def set_error(err):
26 pass