/usr/lib/python2.7/dist-packages/rosdistro/common.py is in python-rosdistro 0.4.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | from __future__ import print_function
import sys
_quiet = False
def quiet(state=True):
global _quiet
_quiet = state
def _print_func(msg, end, file):
global _quiet
if not _quiet:
print(msg, end=end, file=file)
def override_print(print_func=_print_func):
global _print
_print = print_func
_print = _print_func
def info(msg, end=None, file=None):
global _print
_print(msg, end=end, file=file)
def warning(msg, end=None, file=None):
global _print
_print(msg, end=end, file=file)
def error(msg, end=None, file=None):
global _print
file = sys.stderr if file is None else file
_print(msg, end=end, file=file)
|