Fix #3754: HTML builder crashes if HTML theme appends own stylesheets

This commit is contained in:
Takeshi KOMIYA 2017-05-17 23:24:13 +09:00
parent be6d205a1f
commit 62614afb83
2 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,8 @@ Features added
Bugs fixed Bugs fixed
---------- ----------
* #3754: HTML builder crashes if HTML theme appends own stylesheets
Testing Testing
-------- --------

View File

@ -121,6 +121,7 @@ class CSSContainer(list):
RemovedInSphinx20Warning) RemovedInSphinx20Warning)
for item in other: for item in other:
self.append(item) self.append(item)
return self
def __add__(self, other): def __add__(self, other):
ret = CSSContainer(self) ret = CSSContainer(self)