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