Mini Shell
3
�
Ld� � @ s� d Z ddlZddlmZ ddd�Zddd�ZG d d
� d
e�ZG dd� de�ZG d
d� de�Z G dd� de�Z
G dd� de�ZG dd� dee
�ZG dd� dee�ZdS )a
Error and warning handling classes and functions.
This module exports several exception classes:
KickstartError - A generic exception class.
KickstartParseError - An exception for errors occurring during parsing.
KickstartValueError - No longer raised by pykickstart, but kept around for
backwards compatibility.
KickstartVersionError - An exception for errors relating to unsupported
syntax versions.
And some warning classes:
KickstartWarning - A generic warning class.
KickstartParseWarning - A class for warnings occurring during parsing.
KickstartDeprecationWarning - A class for warnings occurring during parsing
related to deprecated commands and options.
� N)�_� c C s t jdt� | |fS )aY This function is deprecated. KickstartError formats the error message now,
so this function returns a tuple that can be formatted by KickstartError.
You should call:
KickstartError(message, lineno=lineno)
But the deprecated way is still supported:
KickstartError(formatErrorMsg(message, lineno=lineno))
z^Function formatErrorMsg is deprecated. The error messages are formatted by KickstartError now.)�warnings�warn�DeprecationWarning)�lineno�msg� r �/usr/lib/python3.6/errors.py�formatErrorMsg1 s r c C s"