Skip to content

Commit 8a9009d

Browse files
committed
Avoid python PendingDeprecationWarning on startup
1 parent fefd85a commit 8a9009d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python/plugins/MetaSearch/util.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
#
2525
###############################################################################
2626

27+
#avoid PendingDeprecationWarning from PyQt4.uic
28+
import warnings
29+
warnings.filterwarnings("ignore", category=PendingDeprecationWarning)
30+
2731
import ConfigParser
2832
from gettext import gettext, ngettext
2933
import logging

0 commit comments

Comments
 (0)