Change sets to lists

This commit is contained in:
Jan Verbeek 2016-07-12 22:21:05 +02:00
parent bbc46d28ff
commit 0cd39ae4ff
2 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ class _Downloader:
Args:
url: The file to download as QUrl.
"""
if url.scheme() not in {'http', 'https'}:
if url.scheme() not in ['http', 'https']:
return
# Prevent loading an asset twice
if url in self.loaded_urls:

View File

@ -300,7 +300,7 @@ class BrowserPage(QWebPage):
else:
reply.finished.connect(functools.partial(
self.display_content, reply, 'image/jpeg'))
elif (mimetype in {'application/pdf', 'application/x-pdf'} and
elif (mimetype in ['application/pdf', 'application/x-pdf'] and
config.get('content', 'enable-pdfjs')):
# Use pdf.js to display the page
self._show_pdfjs(reply)