utils package

Root imports for the tno.mpc.encryption_schemes.utils package.

utils.custom_showwarning(message, category, _filename, _lineno, file=None, _line=None)[source]

Custom warning formatter and printer for python warnings. Prints category and message to output file, default stderr.

Parameters:
  • message (Warning | str) – Warning message, explaining the reason for the warning.

  • category (type[Warning]) – Warning category.

  • file (TextIO | None) – Optional location to write the warning to. If None we write to stderr.

Return type:

None

Submodules