Files
nix-stuff/tests/liam/mailtest/util.py
Shelvacu cfa5049922 wip
2025-04-09 21:37:24 -07:00

16 lines
280 B
Python

import sys
import ssl
import json
def info(msg: str):
print(msg, file=sys.stderr)
def mk_ctx():
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
return ctx
def print_json(**kwargs):
print(json.dumps(kwargs))