Bug 1155968 - Remove semicolons at ends of statements (PEP8). r=khuey

This commit is contained in:
Boris Kudryavtsev 2015-05-09 12:38:00 +02:00
parent caec934f82
commit 8c1ddefa36
2 changed files with 7 additions and 7 deletions

View File

@ -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:

View File

@ -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: