core: add warnings helper to highlight warnings so they are more visible in the output

This commit is contained in:
Dima Gerasimov 2020-09-27 17:29:43 +02:00 committed by karlicoss
parent cd40fc75c3
commit fbaa8e0b44
3 changed files with 51 additions and 5 deletions

View file

@ -1,5 +1,5 @@
import warnings
from ..core import warnings
warnings.warn('my.books.kobo is deprecated! Please use my.kobo instead!')
warnings.high('my.books.kobo is deprecated! Please use my.kobo instead!')
from ..kobo import *