Minor nuisance patch

This commit is contained in:
Miroslav Stampar 2016-02-13 21:28:02 +01:00
parent 78e503d7b2
commit 4237333dca
2 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,8 @@ import time
import traceback import traceback
import warnings import warnings
sys.dont_write_bytecode = True
warnings.filterwarnings(action="ignore", message=".*was already imported", category=UserWarning) warnings.filterwarnings(action="ignore", message=".*was already imported", category=UserWarning)
warnings.filterwarnings(action="ignore", category=DeprecationWarning) warnings.filterwarnings(action="ignore", category=DeprecationWarning)

View File

@ -7,6 +7,9 @@ See the file 'doc/COPYING' for copying permission
import logging import logging
import optparse import optparse
import sys
sys.dont_write_bytecode = True
from lib.utils import versioncheck # this has to be the first non-standard import from lib.utils import versioncheck # this has to be the first non-standard import