OILS / doctools / util.py View on Github | oils.pub

13 lines, 7 significant
1#!/usr/bin/env python2
2from __future__ import print_function
3
4import sys
5
6from typing import Any
7
8
9def log(msg, *args):
10 # type: (str, Any) -> None
11 if args:
12 msg = msg % args
13 print(msg, file=sys.stderr)