mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fix remaining flake8 warnings
This commit is contained in:
parent
c953931621
commit
d01648d637
28 changed files with 328 additions and 310 deletions
|
@ -198,11 +198,11 @@ class Longhand(object):
|
|||
self.gecko_pref = gecko_pref
|
||||
self.has_effect_on_gecko_scrollbars = has_effect_on_gecko_scrollbars
|
||||
assert (
|
||||
has_effect_on_gecko_scrollbars in [None, False, True] and
|
||||
not style_struct.inherited or
|
||||
(gecko_pref is None) == (has_effect_on_gecko_scrollbars is None)), (
|
||||
"Property " + name + ": has_effect_on_gecko_scrollbars must be " +
|
||||
"specified, and must have a value of True or False, iff a " +
|
||||
has_effect_on_gecko_scrollbars in [None, False, True]
|
||||
and not style_struct.inherited
|
||||
or (gecko_pref is None) == (has_effect_on_gecko_scrollbars is None)), (
|
||||
"Property " + name + ": has_effect_on_gecko_scrollbars must be "
|
||||
"specified, and must have a value of True or False, iff a "
|
||||
"property is inherited and is behind a Gecko pref")
|
||||
# For enabled_in, the setup is as follows:
|
||||
# It needs to be one of the four values: ["", "ua", "chrome", "content"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue