Skip to content

Commit bf784b5

Browse files
committed
Fix pep8 errors
1 parent d6842dc commit bf784b5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sphinx_tabs/tabs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,10 @@ def add_assets(app):
198198

199199
def copy_assets(app, exception):
200200
""" Copy asset files to the output """
201-
if app.builder.name not in ('html', 'readthedocs', 'readthedocssinglehtmllocalmedia'):
202-
app.info('Not copying tabs assets! Not compatible with %s builder' % app.builder.name)
201+
builders = ('html', 'readthedocs', 'readthedocssinglehtmllocalmedia')
202+
if app.builder.name not in builders:
203+
app.info('Not copying tabs assets! Not compatible with %s builder' %
204+
app.builder.name)
203205
return
204206
if exception:
205207
app.info('Not copying tabs assets! Error occurred previously')

0 commit comments

Comments
 (0)