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):
|
def write_attr_decl(a):
|
||||||
printComments(fd, a.doccomments, ' ')
|
printComments(fd, a.doccomments, ' ')
|
||||||
|
|
||||||
fd.write(" /* %s */\n" % a.toIDL());
|
fd.write(" /* %s */\n" % a.toIDL())
|
||||||
|
|
||||||
fd.write(" %s = 0;\n" % attributeAsNative(a, True))
|
fd.write(" %s = 0;\n" % attributeAsNative(a, True))
|
||||||
if a.infallible:
|
if a.infallible:
|
||||||
|
@ -740,20 +740,20 @@ class Attribute(object):
|
|||||||
raise IDLError("'Null' attribute requires a value", aloc)
|
raise IDLError("'Null' attribute requires a value", aloc)
|
||||||
if readonly:
|
if readonly:
|
||||||
raise IDLError("'Null' attribute only makes sense for setters",
|
raise IDLError("'Null' attribute only makes sense for setters",
|
||||||
aloc);
|
aloc)
|
||||||
if value not in ('Empty', 'Null', 'Stringify'):
|
if value not in ('Empty', 'Null', 'Stringify'):
|
||||||
raise IDLError("'Null' attribute value must be 'Empty', 'Null' or 'Stringify'",
|
raise IDLError("'Null' attribute value must be 'Empty', 'Null' or 'Stringify'",
|
||||||
aloc);
|
aloc)
|
||||||
self.null = value
|
self.null = value
|
||||||
elif name == 'Undefined':
|
elif name == 'Undefined':
|
||||||
if value is None:
|
if value is None:
|
||||||
raise IDLError("'Undefined' attribute requires a value", aloc)
|
raise IDLError("'Undefined' attribute requires a value", aloc)
|
||||||
if readonly:
|
if readonly:
|
||||||
raise IDLError("'Undefined' attribute only makes sense for setters",
|
raise IDLError("'Undefined' attribute only makes sense for setters",
|
||||||
aloc);
|
aloc)
|
||||||
if value not in ('Empty', 'Null'):
|
if value not in ('Empty', 'Null'):
|
||||||
raise IDLError("'Undefined' attribute value must be 'Empty' or 'Null'",
|
raise IDLError("'Undefined' attribute value must be 'Empty' or 'Null'",
|
||||||
aloc);
|
aloc)
|
||||||
self.undefined = value
|
self.undefined = value
|
||||||
else:
|
else:
|
||||||
if value is not None:
|
if value is not None:
|
||||||
@ -949,14 +949,14 @@ class Param(object):
|
|||||||
raise IDLError("'Null' must specify a parameter", aloc)
|
raise IDLError("'Null' must specify a parameter", aloc)
|
||||||
if value not in ('Empty', 'Null', 'Stringify'):
|
if value not in ('Empty', 'Null', 'Stringify'):
|
||||||
raise IDLError("'Null' parameter value must be 'Empty', 'Null', or 'Stringify'",
|
raise IDLError("'Null' parameter value must be 'Empty', 'Null', or 'Stringify'",
|
||||||
aloc);
|
aloc)
|
||||||
self.null = value
|
self.null = value
|
||||||
elif name == 'Undefined':
|
elif name == 'Undefined':
|
||||||
if value is None:
|
if value is None:
|
||||||
raise IDLError("'Undefined' must specify a parameter", aloc)
|
raise IDLError("'Undefined' must specify a parameter", aloc)
|
||||||
if value not in ('Empty', 'Null'):
|
if value not in ('Empty', 'Null'):
|
||||||
raise IDLError("'Undefined' parameter value must be 'Empty' or 'Null'",
|
raise IDLError("'Undefined' parameter value must be 'Empty' or 'Null'",
|
||||||
aloc);
|
aloc)
|
||||||
self.undefined = value
|
self.undefined = value
|
||||||
else:
|
else:
|
||||||
if value is not None:
|
if value is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user