OILS / doctools / util.py View on Github | oilshell.org

16 lines, 6 significant
1#!/usr/bin/env python2
2"""util.py."""
3from __future__ import print_function
4
5import sys
6
7# many tools import this, causes ImportError
8# the oilshell.org/ also imports this
9#from typing import Any
10
11
12def log(msg, *args):
13 # disabled type: (str, Any) -> None
14 if args:
15 msg = msg % args
16 print(msg, file=sys.stderr)