Mercurial > wikked
view wk.py @ 497:36c3e9b1d1e3
cm: Upgrade all dependencies and fix deprecation issues.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 06 Jun 2020 22:24:38 -0700 |
parents | 2dd7535045eb |
children |
line wrap: on
line source
#!/usr/local/bin/python import sys import logging import colorama from wikked.witch import ColoredFormatter, main # Configure logging. colorama.init() root_logger = logging.getLogger() handler = logging.StreamHandler(stream=sys.stdout) handler.setFormatter(ColoredFormatter('%(message)s')) root_logger.addHandler(handler) if __name__ == "__main__": main()