fix line lengths
This commit is contained in:
parent
f828e554f7
commit
5c37d4a19d
@ -1233,8 +1233,8 @@ class ConfirmQuit(List):
|
|||||||
valid_values = ValidValues(('always', "Always show a confirmation."),
|
valid_values = ValidValues(('always', "Always show a confirmation."),
|
||||||
('multiple-tabs', "Show a confirmation if "
|
('multiple-tabs', "Show a confirmation if "
|
||||||
"multiple tabs are opened."),
|
"multiple tabs are opened."),
|
||||||
('downloads', "show a confirmation if downloads "
|
('downloads', "Show a confirmation if "
|
||||||
"are running"),
|
"downloads are running"),
|
||||||
('never', "Never show a confirmation."))
|
('never', "Never show a confirmation."))
|
||||||
# Values that can be combined with commas
|
# Values that can be combined with commas
|
||||||
combinable_values = ('multiple-tabs', 'downloads')
|
combinable_values = ('multiple-tabs', 'downloads')
|
||||||
@ -1243,7 +1243,8 @@ class ConfirmQuit(List):
|
|||||||
values = self.transform(value)
|
values = self.transform(value)
|
||||||
# Never can't be set with other options
|
# Never can't be set with other options
|
||||||
if 'never' in values and len(values) > 1:
|
if 'never' in values and len(values) > 1:
|
||||||
raise configexc.ValidationError(value, "List cannot contain never!")
|
raise configexc.ValidationError(
|
||||||
|
value, "List cannot contain never!")
|
||||||
# Always can't be set with other options
|
# Always can't be set with other options
|
||||||
elif 'always' in values and len(values) > 1:
|
elif 'always' in values and len(values) > 1:
|
||||||
raise configexc.ValidationError(
|
raise configexc.ValidationError(
|
||||||
|
Loading…
Reference in New Issue
Block a user