fix: pylint
This commit is contained in:
parent
53c7d29585
commit
a4c1d36d6c
2 changed files with 9 additions and 2 deletions
|
|
@ -1 +1,3 @@
|
|||
# version of this module, use for example in rougail commandline to display versions
|
||||
# (with --cli.versions option)
|
||||
__version__ = "0.1.0"
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ You should have received a copy of the GNU Lesser General Public License
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
from typing import Optional
|
||||
|
||||
from shlex import quote
|
||||
from rougail.error import ExtensionError
|
||||
|
||||
|
|
@ -24,6 +26,7 @@ from .i18n import _
|
|||
|
||||
|
||||
class RougailOutputEnvironment:
|
||||
"""Rougail output that generate environment variables"""
|
||||
output_name = "environment"
|
||||
|
||||
def __init__(
|
||||
|
|
@ -187,7 +190,8 @@ class RougailOutputEnvironment:
|
|||
if self.submulti_separator in value:
|
||||
raise ExtensionError(
|
||||
_(
|
||||
'the character "{0}" is a sub multi separator, this character must not in the "{1}" value'
|
||||
'the character "{0}" is a sub multi separator, '
|
||||
'this character must not in the "{1}" value'
|
||||
).format(self.submulti_separator, name)
|
||||
)
|
||||
new_values.append(value)
|
||||
|
|
@ -196,7 +200,8 @@ class RougailOutputEnvironment:
|
|||
if not self.multi_in_array and self.multi_separator in values:
|
||||
raise ExtensionError(
|
||||
_(
|
||||
'the character "{0}" is a multi separator, this character must not in the "{1}" value'
|
||||
'the character "{0}" is a multi separator, '
|
||||
'this character must not in the "{1}" value'
|
||||
).format(self.multi_separator, name)
|
||||
)
|
||||
return quote(values)
|
||||
|
|
|
|||
Loading…
Reference in a new issue