示例#1
0
_INFO = """
ExaBGP version : %s
Python version : %s
System Uname   : %s
System MaxInt  : %s
Root           : %s

Environment:
%s
""" % (
    version,
    sys.version.replace('\n', ' '),
    platform.version(),
    str(sys.maxsize),
    ROOT,
    '\n'.join(Env.iter_env(diff=True)),
)


_PANIC = """
********************************************************************************
EXABGP HAD AN INTERNAL ISSUE / HELP US FIX IT
********************************************************************************

Sorry, you encountered a problem with ExaBGP and we could not keep the program
running.

There are a few things you can do to help us (and yourself):
- make sure you are running the latest version of the code available at
  https://github.com/Exa-Networks/exabgp/releases/latest
- if so report the issue on https://github.com/Exa-Networks/exabgp/issues
示例#2
0
文件: environ.py 项目: nnvai47/exabgp
def default():
    sys.stdout.write('\nEnvironment values are:\n')
    sys.stdout.write('\n'.join('    %s' % _ for _ in Env.default()))
    sys.stdout.flush()