Bug 1142609 - Fix PEP 8 E5xx warnings in dom/bindings's Python code. r=peterv

--HG--
extra : rebase_source : f0e5e5015e300f2332ab00abd68491894be126a2
This commit is contained in:
Samy Dindane 2015-08-10 19:01:56 +02:00
Родитель 9d7320f826
Коммит 871a9f37e3
2 изменённых файлов: 14 добавлений и 8 удалений

Просмотреть файл

@ -13662,7 +13662,11 @@ class CGExampleClass(CGBindingImplClass):
ccImpl = dedent("""
// Only needed for refcounted objects.
#error "If you don't have members that need cycle collection, then remove all the cycle collection bits from this implementation and the corresponding header. If you do, you want NS_IMPL_CYCLE_COLLECTION_INHERITED(${nativeType}, ${parentType}, your, members, here)"
# error "If you don't have members that need cycle collection,
# then remove all the cycle collection bits from this
# implementation and the corresponding header. If you do, you
# want NS_IMPL_CYCLE_COLLECTION_INHERITED(${nativeType},
# ${parentType}, your, members, here)"
NS_IMPL_ADDREF_INHERITED(${nativeType}, ${parentType})
NS_IMPL_RELEASE_INHERITED(${nativeType}, ${parentType})
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(${nativeType})

Просмотреть файл

@ -1640,7 +1640,7 @@ class IDLDictionary(IDLObjectWithScope):
if memberType.inner == dictionary:
return (True, [memberType.location])
(contains, locations) = dictionaryContainsDictionary(memberType.inner, \
(contains, locations) = dictionaryContainsDictionary(memberType.inner,
dictionary)
if contains:
return (True, [memberType.location] + locations)
@ -1846,11 +1846,11 @@ class IDLType(IDLObject):
""" Returns a boolean indicating whether this type is an 'interface'
type that is implemented in Spidermonkey. At the moment, this
only returns true for the types from the TypedArray spec. """
return self.isInterface() and (self.isArrayBuffer() or \
self.isArrayBufferView() or \
self.isSharedArrayBuffer() or \
self.isSharedArrayBufferView() or \
self.isTypedArray() or \
return self.isInterface() and (self.isArrayBuffer() or
self.isArrayBufferView() or
self.isSharedArrayBuffer() or
self.isSharedArrayBufferView() or
self.isTypedArray() or
self.isSharedTypedArray())
def isDictionary(self):
@ -6409,7 +6409,9 @@ class Parser(Tokenizer):
logger.reportGrammarErrors()
self._globalScope = IDLScope(BuiltinLocation("<Global Scope>"), None, None)
# To make our test harness work, pretend like we have a primary global already. Note that we _don't_ set _globalScope.primaryGlobalAttr, so we'll still be able to detect multiple PrimaryGlobal extended attributes.
# To make our test harness work, pretend like we have a primary global already.
# Note that we _don't_ set _globalScope.primaryGlobalAttr,
# so we'll still be able to detect multiple PrimaryGlobal extended attributes.
self._globalScope.primaryGlobalName = "FakeTestPrimaryGlobal"
self._globalScope.globalNames.add("FakeTestPrimaryGlobal")
self._globalScope.globalNameMapping["FakeTestPrimaryGlobal"].add("FakeTestPrimaryGlobal")