mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Implement [Func]
This commit is contained in:
parent
0d04acd50f
commit
e179cb02ff
6 changed files with 58 additions and 8 deletions
|
@ -1334,8 +1334,11 @@ def MemberCondition(pref, func):
|
|||
"""
|
||||
assert pref is None or isinstance(pref, str)
|
||||
assert func is None or isinstance(func, str)
|
||||
assert func is None or pref is None
|
||||
if pref:
|
||||
return 'Condition::Pref("%s")' % pref
|
||||
if func:
|
||||
return 'Condition::Func(%s)' % func
|
||||
return "Condition::Satisfied"
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue