diff --git a/qutebrowser/utils/qtutils.py b/qutebrowser/utils/qtutils.py index 4da9d48af..7d6da1dc6 100644 --- a/qutebrowser/utils/qtutils.py +++ b/qutebrowser/utils/qtutils.py @@ -33,11 +33,17 @@ import sys import operator import contextlib -import pkg_resources from PyQt5.QtCore import (qVersion, QEventLoop, QDataStream, QByteArray, QIODevice, QSaveFile) from PyQt5.QtWidgets import QApplication +from qutebrowser.utils import log + +with log.ignore_py_warnings(category=PendingDeprecationWarning, module='imp'): + # This imports 'imp' and gives us a PendingDeprecationWarning on + # Debian Jessie. + import pkg_resources + MAXVALS = { 'int': 2 ** 31 - 1,