Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(6)  |  Derive(0)  |  Import(4)
Displays the formatted msg with an error style.
    

        def cerr(msg):
    """ Displays the formatted msg with an error style.
    """

    cprint(msg, 'red', attrs=['bold'])
        


src/b/a/baboon-0.1.4/baboon/baboon/commands.py   baboon(Download)
from baboon.baboon.initializor import MetadirController
from baboon.baboon.transport import RegisterTransport, AdminTransport
from baboon.baboon.fmt import cinput, confirm_cinput, cwarn, csuccess, cerr
 
from baboon.baboon.config import check_user, check_server, check_project
    def wrapped():
        try:
            return fn()
        except (BaboonException, CommandException) as err:
            cerr(err)
    else:
        # Print the error message.
        cerr(msg)
        return False
 

src/b/a/baboon-HEAD/baboon/baboon/commands.py   baboon(Download)
from baboon.baboon.initializor import MetadirController
from baboon.baboon.transport import RegisterTransport, AdminTransport
from baboon.baboon.fmt import cinput, confirm_cinput, cwarn, csuccess, cerr
from baboon.baboon.notifier import Notifier
 
    def wrapped():
        try:
            return fn()
        except (BaboonException, CommandException) as err:
            cerr(err)
    else:
        # Print the error message.
        cerr(msg)
        return False
 

src/b/a/baboon-0.1.4/baboon/baboon/config.py   baboon(Download)
    from configparser import RawConfigParser, MissingSectionHeaderError
 
from baboon.baboon.fmt import cerr, cwarn, csuccess
from baboon.baboon.dictconf import LOGGING, PARSER
from baboon.common.config import get_config_args, get_config_file
                     baboonrc_path)
    except EnvironmentError as err:
        cerr("Cannot dump the configuration. Cause:\n%s" % err)
 
 

src/b/a/baboon-HEAD/baboon/baboon/config.py   baboon(Download)
    from configparser import RawConfigParser, MissingSectionHeaderError
 
from baboon.baboon.fmt import cerr, cwarn, csuccess
from baboon.baboon.dictconf import LOGGING, PARSER
from baboon.common.config import get_config_args, get_config_file
                     baboonrc_path)
    except EnvironmentError as err:
        cerr("Cannot dump the configuration. Cause:\n%s" % err)