mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1155968 - Remove semicolons at ends of statements (PEP8). r=khuey
This commit is contained in:
parent
caec934f82
commit
8c1ddefa36
@ -351,7 +351,7 @@ def write_interface(iface, fd):
|
||||
def write_attr_decl(a):
|
||||
printComments(fd, a.doccomments, ' ')
|
||||
|
||||
fd.write(" /* %s */\n" % a.toIDL());
|
||||
fd.write(" /* %s */\n" % a.toIDL())
|
||||
|
||||
fd.write(" %s = 0;\n" % attributeAsNative(a, True))
|
||||
if a.infallible:
|
||||
|
@ -740,20 +740,20 @@ class Attribute(object):
|
||||
raise IDLError("'Null' attribute requires a value", aloc)
|
||||
if readonly:
|
||||
raise IDLError("'Null' attribute only makes sense for setters",
|
||||
aloc);
|
||||
aloc)
|
||||
if value not in ('Empty', 'Null', 'Stringify'):
|
||||
raise IDLError("'Null' attribute value must be 'Empty', 'Null' or 'Stringify'",
|
||||
aloc);
|
||||
aloc)
|
||||
self.null = value
|
||||
elif name == 'Undefined':
|
||||
if value is None:
|
||||
raise IDLError("'Undefined' attribute requires a value", aloc)
|
||||
if readonly:
|
||||
raise IDLError("'Undefined' attribute only makes sense for setters",
|
||||
aloc);
|
||||
aloc)
|
||||
if value not in ('Empty', 'Null'):
|
||||
raise IDLError("'Undefined' attribute value must be 'Empty' or 'Null'",
|
||||
aloc);
|
||||
aloc)
|
||||
self.undefined = value
|
||||
else:
|
||||
if value is not None:
|
||||
@ -949,14 +949,14 @@ class Param(object):
|
||||
raise IDLError("'Null' must specify a parameter", aloc)
|
||||
if value not in ('Empty', 'Null', 'Stringify'):
|
||||
raise IDLError("'Null' parameter value must be 'Empty', 'Null', or 'Stringify'",
|
||||
aloc);
|
||||
aloc)
|
||||
self.null = value
|
||||
elif name == 'Undefined':
|
||||
if value is None:
|
||||
raise IDLError("'Undefined' must specify a parameter", aloc)
|
||||
if value not in ('Empty', 'Null'):
|
||||
raise IDLError("'Undefined' parameter value must be 'Empty' or 'Null'",
|
||||
aloc);
|
||||
aloc)
|
||||
self.undefined = value
|
||||
else:
|
||||
if value is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user